ImageMagick montage always chaging from 32 bits to 8 bits

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
posfan12
Posts: 7
Joined: 2012-05-09T18:19:13-07:00
Authentication code: 13

ImageMagick montage always chaging from 32 bits to 8 bits

Post 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!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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"
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply