Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
NimaiMalle
Posts: 3 Joined: 2013-02-02T16:53:40-07:00
Authentication code: 6789
Post
by NimaiMalle » 2013-02-02T16:59:49-07:00
I tried all of the following, but the resulting image has color bands - no dithering.
Code: Select all
convert Sample.png -depth 4 Sample2.png
convert Sample.png -depth 4 -dither FloydSteinberg Sample2.png
convert Sample.png -depth 4 +dither Sample2.png
=>
Any suggestions appreciated!
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2013-02-02T17:40:53-07:00
convert Sample.png -colors 16 Sample2.png
NimaiMalle
Posts: 3 Joined: 2013-02-02T16:53:40-07:00
Authentication code: 6789
Post
by NimaiMalle » 2013-02-02T23:19:10-07:00
snibgo wrote: convert Sample.png -colors 16 Sample2.png
Thanks for the reply. A 16 color pallet is different than a color depth of 4, 16-bit RGBA.
Still looking for way to get that to dither...
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2013-02-03T02:50:54-07:00
Ah, sorry. "-remap" can dither, and can use the colours from your Sample2:
Code: Select all
convert Sample.png -depth 4 Sample2.png
convert Sample.png -remap Sample2.png Sample3.png
Is Sample3.png what you want?
NimaiMalle
Posts: 3 Joined: 2013-02-02T16:53:40-07:00
Authentication code: 6789
Post
by NimaiMalle » 2013-02-03T19:07:04-07:00
Fascinating. There are some peculiar artifacts but it did indeed dither.
anthony
Posts: 8883 Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Post
by anthony » 2013-02-03T23:06:21-07:00