I have linked to two images.
The image you mention is the original image and yes, the original image displays as it should for me (all white).
The issue that I'm facing is that after running ImageMagick and performing some operations on the image it displays as all black which is entirely not what I want, it should still be all-white.
Original image (all white):
http://i.imgur.com/rbGHcS7.png
Command:
Code: Select all
mogrify -dither FloydSteinberg -colors 16 -define png:color-type='3' -define png:bit-depth='4' image.png
Image after conversion (all black):
http://i.imgur.com/6XwHEpS.png
Perhaps you need to upload your exact file that has problems.
Please see the first post in this topic (posted by me), or above in this post.
Try -set background white. Not sure if that will work.
Ok, I corrected the command and the background color is now set to white in the converted image, but still the converted image shows as all-black.
Hm, this was harder than I tought it was.
Command:
Code: Select all
mogrify image.png -dither FloydSteinberg -set background white -flatten -colors 16 -define png:color-type='3' -define png:bit-depth='4' test.png
Identify on converted image:
http://pastebin.com/UwL2pBjf
Resulting converted image from above command:
http://i.imgur.com/UqOVdcx.png
I don't really know what's causing the image to be displayed as all black. My best guess is the "Transparent color: black" value that turns the entirely white image into black.
Again, I have tried tweaking the command and specifying transparent color to something else, but I've always ended up with "Transparent color: black" in the resulting images.
Any pointers on how to specify transparent color?