How to save PNG without background tag?
Posted: 2010-12-22T06:07:14-07:00
Hi,
I was searching for solution but found no answer yet so I'm asking here, how to save PNG file which does not have the background chunk.
I'm looking for solution which would work with MagickWand, but I would like to see CMD like as well...
The problem can be described like:
I have PNG image with structure:
>> png/parse %klic.png
when I do:
I get:
I don't care about pHYs and vpAg tags at this moment, but IM also adds bKGD tag which affects how the image looks like when I use it in soft where I need it. Is there any solution?
Btw, I consider it to be a bug, when I resave same image, I expect to have same image again.
Tested with ImageMagick 6.6.6-0 2010-11-21 Q16
I was searching for solution but found no answer yet so I'm asking here, how to save PNG file which does not have the background chunk.
I'm looking for solution which would work with MagickWand, but I would like to see CMD like as well...
The problem can be described like:
I have PNG image with structure:
>> png/parse %klic.png
Code: Select all
IHDR HEADER is an object of value:
size pair! 35x15
bitDepth integer! 8
colorType integer! 6
compression integer! 0
filter integer! 0
interlace logic! false
IDAT length: 1258
IEND
Code: Select all
convert klic.png klic-new.png
Code: Select all
>> png/parse %klic-new.png
IHDR HEADER is an object of value:
size pair! 35x15
bitDepth integer! 8
colorType integer! 6
compression integer! 0
filter integer! 0
interlace logic! false
bKGD #{00FF00FF00FF}
pHYs PHYS is an object of value:
x integer! 72
y integer! 72
unit integer! 0
vpAg VPAG is an object of value:
x integer! 35
y integer! 15
unit integer! 0
IDAT length: 1244
tEXt "date:create^@2010-12-10T23:11:42+01:00"
tEXt "date:modify^@2010-12-10T19:56:14+01:00"
IEND
Btw, I consider it to be a bug, when I resave same image, I expect to have same image again.
Tested with ImageMagick 6.6.6-0 2010-11-21 Q16