Tiling image creates black boxes

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
kwinz
Posts: 2
Joined: 2012-07-23T21:14:25-07:00
Authentication code: 15

Tiling image creates black boxes

Post by kwinz »

I am creating tile from a bigger image.
convert tiling-example.png -crop 256x256 -set filename:tile %[fx:page.y/256]_%[fx:page.x/256] %[filename:tile].png
Source file: https://dl.dropbox.com/u/13281067/tiling-example.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
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
I am using "ImageMagick 6.7.8-4 2012-07-19 Q16"
Is this a bug? Or am I doning something wrong?
Any help appreciated!
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Tiling image creates black boxes

Post by glennrp »

I believe that bug was introduced by me in IM-6.7.8-3 and fixed in 6.7.8-5
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Tiling image creates black boxes

Post by anthony »

Ensure you quote that argument. [...] are shell meta chars!
But that isn't your problem.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
kwinz
Posts: 2
Joined: 2012-07-23T21:14:25-07:00
Authentication code: 15

Re: Tiling image creates black boxes

Post by kwinz »

I still get black boxes in the white area when I view it on my mobile Android phone. On the PC it's ok now.
Version: ImageMagick 6.7.8-6 2012-07-23 Q16
Post Reply