I'm running
Code: Select all
convert input.png -mask mask.png -fill red -draw "rectangle 0,0,512,512" out.png
All I want to be able to do is convert the source image so that this no longer happens. However, I've tried adding -type TrueColor and -colorspace RGB but neither fix this.
If I output debugging information the only different lines are:
Code: Select all
<<<<<<< Working >256 image
Reading PNG bKGD chunk.
2013-01-04T16:02:12+00:00 0:00.010 0.000u 6.6.9 Coder convert[11703]: png.c/ReadOnePNGImage/2101/Coder
raw ping_background=(255,255,255).
2013-01-04T16:02:12+00:00 0:00.010 0.000u 6.6.9 Coder convert[11703]: png.c/ReadOnePNGImage/2125/Coder
bkgd_scale=257.
2013-01-04T16:02:12+00:00 0:00.010 0.000u 6.6.9 Coder convert[11703]: png.c/ReadOnePNGImage/2128/Coder
ping_background=(65535,65535,65535).
2013-01-04T16:02:12+00:00 0:00.010 0.000u 6.6.9 Coder convert[11703]: png.c/ReadOnePNGImage/2145/Coder
image->background_color=(65535,65535,65535).
2013-01-04T16:02:12+00:00 0:00.010 0.000u 6.6.9 Coder convert[11703]: png.c/ReadOnePNGImage/2383/Coder
===============
>>>>>>>>>>Broken <256 Image
...
<<<<<<< Working >256 image
No room in the colormap to add background color
===============
background_color index is 232
>>>>>>>>>>Broken <256 Image
...
<<<<<<< Working >256 image
number_opaque > 256
===============
number_opaque = 232
>>>>>>>>>>Broken <256 Image