Page 1 of 1

ImageMagick montage always chaging from 32 bits to 8 bits

Posted: 2015-11-25T02:24:10-07:00
by posfan12
I am trying to create a montage from a series of 32 bit PNG images. However the result always gets reduced down to 8 bits with no transparency.

Here's an example of one of the source images: http://imgur.com/sTQWcV3

Here's an example of my command line:

Code: Select all

montage "%ImgPath%\layer_0.png" "%ImgPath%\layer_1.png" "%ImgPath%\layer_2.png"  -alpha set -geometry 1500x1500+25+25 "%ImgPath%\lkjdsafd.png"
What am I doing wrong? Thanks!

Re: ImageMagick montage always chaging from 32 bits to 8 bits

Posted: 2015-11-25T03:01:21-07:00
by dlemstra
ImageMagick has some optimizations to reduce the file size when the PNG file is saved to disk. You can prevent this by forcing the format to PNG32. Below is an example of how you could do that:

Code: Select all

montage "%ImgPath%\layer_0.png" "%ImgPath%\layer_1.png" -alpha set -geometry 1500x1500+25+25  "png32:%ImgPath%\lkjdsafd.png"