I have a tutorial showing how to "Producing a stippled image with Gimp"[1],
but I would like to do it in imagemagick, so I can do 50+ pass on the same image
[1] http://wiki.evilmadscience.com/Producin ... _with_Gimp
Producing a stippled image using imagemagick
-
- Posts: 3
- Joined: 2011-09-01T07:05:20-07:00
- Authentication code: 8675308
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Producing a stippled image using imagemagick
Here's one way, using a Mona Lisa image clipped from your page. There is probably a better way that doesn't require the first command. Windows script; for a Mac change "^" to "\" and "%%" to "%".
The "-modulate" sets the saturation to zero, converting it to greys. "+level" reduces the contrast, setting what was black to 30% and what was white to 90%. Adjust as desired. "-remap" uses just the colours in map.png, ie black and white. By default, it dithers.
Code: Select all
convert xc:White xc:Black -append map.png
convert ^
monaLisa.png ^
-modulate 100,0,100 ^
+level 30%%,90%% ^
-remap map.png ^
ml0.png
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Producing a stippled image using imagemagick
Snibgo,
I believe that you can put it into one command by using mpr format to create the map image in memory, delete the non-memory file, then use mpr to insert the memory file in place of the map.png.
If you need help, let me know.
Fred
I believe that you can put it into one command by using mpr format to create the map image in memory, delete the non-memory file, then use mpr to insert the memory file in place of the map.png.
If you need help, let me know.
Fred
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Producing a stippled image using imagemagick
Ah, yes, thanks. I've never used mpr. Still learning after all these years.
Code: Select all
convert ^
xc:White xc:Black -append -write mpr:blackwhite +delete ^
monaLisa.png ^
-modulate 100,0,100 ^
-auto-level ^
+level 30%%,90%% ^
-remap mpr:blackwhite ^
ml2.png
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Producing a stippled image using imagemagick
So am I! This trick I learned from Magick. I had the same trouble a few months back and wondered why one could not use parenthesis processing on the map image. His reply was the mpr method. There is probably a post on it somewhere, but I do not recall where.snibgo wrote:Still learning after all these years.
It is basically the same issue as with tiling when you need to have the tiled image before you can tile it (depending upon the tile method). See
http://www.imagemagick.org/Usage/canvas/#tile
http://www.imagemagick.org/Usage/canvas/#tile_memory
Fred
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Producing a stippled image using imagemagick
The problem is that these operators were developed long before parenthesis and mutli-operation processing became common in IMv6
As such secondary images had to come from disk from in-memory.
Both these cases 'color map dithering' and 'tiling' need to be modified or replaced with a in-memory image version of the operation (much like CLUT does).
I'd love for example to include "-tile" but this is used in montage and display for other purposes, make it hard to use as is.
That is not to say a 'disk source' version is not useful, but a in-memory version can replace even those.
As such secondary images had to come from disk from in-memory.
Both these cases 'color map dithering' and 'tiling' need to be modified or replaced with a in-memory image version of the operation (much like CLUT does).
I'd love for example to include "-tile" but this is used in montage and display for other purposes, make it hard to use as is.
That is not to say a 'disk source' version is not useful, but a in-memory version can replace even those.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/