Tiling image creates black boxes
Posted: 2012-07-23T21:29:57-07:00
I am creating tile from a bigger image.
Result screenshot: https://dl.dropbox.com/u/13281067/Scree ... 9%3A14.png
However the result shows every white tile as black.
I tried to fix this with various combinations of
-background white -flatten
-alpha off
-alpha extract
-alpha On
-colorspace transparent
but none helped. The only workaround that helped was to set -define png:color-type=2
Is this a bug? Or am I doning something wrong?
Any help appreciated!
Source file: https://dl.dropbox.com/u/13281067/tiling-example.pngconvert tiling-example.png -crop 256x256 -set filename:tile %[fx:page.y/256]_%[fx:page.x/256] %[filename:tile].png
Result screenshot: https://dl.dropbox.com/u/13281067/Scree ... 9%3A14.png
However the result shows every white tile as black.
I tried to fix this with various combinations of
-background white -flatten
-alpha off
-alpha extract
-alpha On
-colorspace transparent
but none helped. The only workaround that helped was to set -define png:color-type=2
I am using "ImageMagick 6.7.8-4 2012-07-19 Q16"convert tiling-example.png -crop 256x256 -set filename:tile %[fx:page.y/256]_%[fx:page.x/256] -define png:color-type=2 %[filename:tile].png
Is this a bug? Or am I doning something wrong?
Any help appreciated!