There are tutorials about how to take a photo and convert it into a line
drawing using ImageMagik and there are also some online tools to do
similar. They take one bitmap and turn it into another bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into a series
of line segments in SVG (or similar) format outlining the boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
There are tutorials about how to take a photo and convert it into a line drawing using ImageMagik and there are also some online tools to do similar. They take one bitmap and turn it into another bitmap. Does anyone know of a way to take a bitmap (photo) and turn it into a series of line segments in SVG (or similar) format outlining the boundaries of similar gray scale or color?
Some drawing tools have a “trace” feature that can do this. I’m pretty sure that CorelDraw does. (But alas $$$.). Don’t know about Inkscape.
But I have found that I was not very satisfied with the results. They tend to produce wiggly lines that more or less match the image, but don’t match the intent of having a smooth curve. I usually use Inkscape to manually trace the image using Bézier curves. I then either import the resulting SVG into OpenSCAD, or transcribe the coordinates to into the OpenSCAD program, into calls to Bézier functions.
Jordan:
Thanks. InkScape has a Path, Trace Bitmap feature that works, but not
as well as the ImageMagik approach. The InkScape approach may result in
SVGs, while the IM approach just creates a new image.
I just tried combining IM as a pre-processor for IS, and that works very
well, creating a reasonable SVG file!
FYI, the IM command line is as follows, where "Seven.jpg" is the
original image.
magick Seven.jpg -canny 0x1+05%+15% Seven_lines.png
Jon
On 8/27/2026 12:07 PM, Jordan Brown wrote:
There are tutorials about how to take a photo and convert it into a line drawing using ImageMagik and there are also some online tools to do similar. They take one bitmap and turn it into another bitmap. Does anyone know of a way to take a bitmap (photo) and turn it into a series of line segments in SVG (or similar) format outlining the boundaries of similar gray scale or color?
Some drawing tools have a “trace” feature that can do this. I’m pretty sure that CorelDraw does. (But alas $$$.). Don’t know about Inkscape.
But I have found that I was not very satisfied with the results. They tend to produce wiggly lines that more or less match the image, but don’t match the intent of having a smooth curve. I usually use Inkscape to manually trace the image using Bézier curves. I then either import the resulting SVG into OpenSCAD, or transcribe the coordinates to into the OpenSCAD program, into calls to Bézier functions.
I did this to make stone walls, drew a black-n-white image of the wall
profile and wrote software to use OpenCV to extract the contours of the
stones to make meshes and then decorate them with noise-derived
textures. Not exactly plug-n-play, but OpenCV allows you to simplify the
discovered contours with another routine, adjustable regarding degree of
simplification. Oh, and no .svg output without writing a routine to do
that.
Extracting shapes from photographs is challenging, algorithms aren't
smart enough to handle all the color/contrast situations that clutter
photos. I've tried using the AI image manipulation tools with limited
success; I did manage to coax Nano Banana to render a black-n-white of a
stone wall in a vintage photo, took a few choice words to get it off
converting to bricks and such. It did things I didn't ask for, like
replace people's faces with faces from other photos (one kid had a
beard, thank you...), so didn't know if I could trust its mortar lines,
but with enough constraining words I think such an approach can work.
Glenn
On 8/27/2026 5:31 AM, Jon Bondy via Discuss wrote:
There are tutorials about how to take a photo and convert it into a
line drawing using ImageMagik and there are also some online tools to
do similar. They take one bitmap and turn it into another bitmap.
Does anyone know of a way to take a bitmap (photo) and turn it into a
series of line segments in SVG (or similar) format outlining the
boundaries of similar gray scale or color?
On Thu, 2026-08-27 at 07:31 -0400, Jon Bondy via Discuss wrote:
There are tutorials about how to take a photo and convert it into a
line
drawing using ImageMagik and there are also some online tools to do
similar. They take one bitmap and turn it into another bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into a
series
of line segments in SVG (or similar) format outlining the boundaries
of
similar gray scale or color?
makerlab.com has some image to keychain or bust or statue or ??
I don't use it myself, but a lot of folks have reasonable results from
it.
Larry
I've always found it best to just re-draw:
https://community.carbide3d.com/t/drawing-a-weber-gasket/104998
William
-- Sphinx of black quartz, judge my vow.https://designinto3d.com/
On Thursday, August 27, 2026 at 07:31:22 AM EDT, OpenSCAD general discussion Mailing-list discuss@lists.openscad.org wrote:
There are tutorials about how to take a photo and convert it into a line
drawing using ImageMagik and there are also some online tools to do
similar. They take one bitmap and turn it into another bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into a series
of line segments in SVG (or similar) format outlining the boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
GIMP is a free photoshop type app with many tools one can use to "simplify"
a photo.
On Thu, Aug 27, 2026, 1:34 PM William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:
I've always found it best to just re-draw:
https://community.carbide3d.com/t/drawing-a-weber-gasket/104998
William
--
Sphinx of black quartz, judge my vow.
https://designinto3d.com/
On Thursday, August 27, 2026 at 07:31:22 AM EDT, OpenSCAD general
discussion Mailing-list discuss@lists.openscad.org wrote:
There are tutorials about how to take a photo and convert it into a line
drawing using ImageMagik and there are also some online tools to do
similar. They take one bitmap and turn it into another bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into a series
of line segments in SVG (or similar) format outlining the boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I think there is a function in Inkjet, which does something...
Unfortunately I don´t know how this function is called by now.
Karl
Am 27.08.26 um 20:41 schrieb Todd Allen via Discuss:
GIMP is a free photoshop type app with many tools one can use to
"simplify" a photo.
On Thu, Aug 27, 2026, 1:34 PM William F. Adams via Discuss
discuss@lists.openscad.org wrote:
I've always found it best to just re-draw:
https://community.carbide3d.com/t/drawing-a-weber-gasket/104998
William
--
Sphinx of black quartz, judge my vow.
https://designinto3d.com/
On Thursday, August 27, 2026 at 07:31:22 AM EDT, OpenSCAD general
discussion Mailing-list <discuss@lists.openscad.org> wrote:
There are tutorials about how to take a photo and convert it
into a line
drawing using ImageMagik and there are also some online tools
to do
similar. They take one bitmap and turn it into another
bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into
a series
of line segments in SVG (or similar) format outlining the
boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com <http://www.avg.com>
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
William:
Thanks. I may need to do a dozen or two of these things, and they may be quite complex.
Jon
On 8/27/2026 2:34 PM, William F. Adams wrote:
I've always found it best to just re-draw:
https://community.carbide3d.com/t/drawing-a-weber-gasket/104998https://urldefense.proofpoint.com/v2/url?u=https-3A__community.carbide3d.com_t_drawing-2Da-2Dweber-2Dgasket_104998&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=Ah1_CbLGFTmg80XCyoPCqjM3t1KBsCgykRYAzkUz-jFJSweROsMDtK6d7qYCxORf&s=V_Z6UVLr0zeqAHyMpDGjr7r4CzMlDL8mGu09PlJoay4&e=
William
--
Sphinx of black quartz, judge my vow.
https://designinto3d.com/https://urldefense.proofpoint.com/v2/url?u=https-3A__designinto3d.com_&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=Ah1_CbLGFTmg80XCyoPCqjM3t1KBsCgykRYAzkUz-jFJSweROsMDtK6d7qYCxORf&s=fU1V7GzA-rHruzCCK7IPReQrS6H0UnAu-8O5evm1LVI&e=
On Thursday, August 27, 2026 at 07:31:22 AM EDT, OpenSCAD general discussion Mailing-list discuss@lists.openscad.orgmailto:discuss@lists.openscad.org wrote:
There are tutorials about how to take a photo and convert it into a line
drawing using ImageMagik and there are also some online tools to do
similar. They take one bitmap and turn it into another bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into a series
of line segments in SVG (or similar) format outlining the boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.comhttp://www.avg.com
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.orgmailto:discuss-leave@lists.openscad.org
Todd:
Thanks. ImageMagik does most of this with a command line interface
which allows for batch processing; it also is free.
Jon
On 8/27/2026 2:41 PM, Todd Allen via Discuss wrote:
GIMP is a free photoshop type app with many tools one can use to
"simplify" a photo.
On Thu, Aug 27, 2026, 1:34 PM William F. Adams via Discuss
discuss@lists.openscad.org wrote:
I've always found it best to just re-draw:
https://community.carbide3d.com/t/drawing-a-weber-gasket/104998
<https://urldefense.proofpoint.com/v2/url?u=https-3A__community.carbide3d.com_t_drawing-2Da-2Dweber-2Dgasket_104998&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=v74Zgd6D2TjRt5ES8CHWOa2YICrVP4XpuEKJGcslvkU0TswF8cNQkvZ9CuYK7yhf&s=sewdCNqqFYHvBYHrVOMYJpSYrWP-I4uP1kHr4NoloNk&e=>
William
--
Sphinx of black quartz, judge my vow.
https://designinto3d.com/
<https://urldefense.proofpoint.com/v2/url?u=https-3A__designinto3d.com_&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=v74Zgd6D2TjRt5ES8CHWOa2YICrVP4XpuEKJGcslvkU0TswF8cNQkvZ9CuYK7yhf&s=2vI6lgdp76VcnWVcWbCTz2sHgrI26Gv1ajwUZ-1YIcQ&e=>
On Thursday, August 27, 2026 at 07:31:22 AM EDT, OpenSCAD general
discussion Mailing-list <discuss@lists.openscad.org> wrote:
There are tutorials about how to take a photo and convert it
into a line
drawing using ImageMagik and there are also some online tools
to do
similar. They take one bitmap and turn it into another
bitmap. Does
anyone know of a way to take a bitmap (photo) and turn it into
a series
of line segments in SVG (or similar) format outlining the
boundaries of
similar gray scale or color?
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.avg.com&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=v74Zgd6D2TjRt5ES8CHWOa2YICrVP4XpuEKJGcslvkU0TswF8cNQkvZ9CuYK7yhf&s=YAoQkdvzLXlTaQfuwd6dpSKrEQQqZF4ep-FAIDdAmUk&e=>
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org