Old VS New ImageMagick BMP to Transparent PNG
Posted: 2011-09-22T02:08:34-07:00
Recently we had to move to a new server with a new imagemagick version. We always used the following to convert BMP's to transparent PNG's:
convert -limit memory 256mb -limit map 512mb TEST.bmp -transparent white -depth 8 -type PaletteMatte -shave 1x1 TEST.png
On the new server however the result is much different. The old server had ImageMagick 6.3.7, the new server version 6.6.2-6
On the old server I got a PNG with BitDepth 2, ColorType 3 and chunks: IHDR, PLTE, tRNS, BKGD, vpAG, IDAT and IEND
On the new server I get a PNG with BitDepth 8, ColorType 6 and chucks: IHDR BKGD, vpAG, IDAT, IDAT, tEXt, tEXt and IEND
The problem is that I am obligated to get a PNG with PLTE, tRNS chunks, BitDepth 2, ColorType 3. How would I achieve this result?
convert -limit memory 256mb -limit map 512mb TEST.bmp -transparent white -depth 8 -type PaletteMatte -shave 1x1 TEST.png
On the new server however the result is much different. The old server had ImageMagick 6.3.7, the new server version 6.6.2-6
On the old server I got a PNG with BitDepth 2, ColorType 3 and chunks: IHDR, PLTE, tRNS, BKGD, vpAG, IDAT and IEND
On the new server I get a PNG with BitDepth 8, ColorType 6 and chucks: IHDR BKGD, vpAG, IDAT, IDAT, tEXt, tEXt and IEND
The problem is that I am obligated to get a PNG with PLTE, tRNS chunks, BitDepth 2, ColorType 3. How would I achieve this result?