Forum archive
PNGOUT feature request - remove chunk instead of keep chunk
- There's an issue with the way Internet Explorer handles the "gamma" information in PNG files...
http://f6design.com/journal/2006/12/01/fixing-png-gamma/
Currently, the way I have to deal with it is by opening each PNG file in TweakPNG and manually deleting the gamma chunk and saving.
It would be REALLY handy if PNGOUT had a switch to REMOVE a specific chunk ( /rCHUNK ). Kind of the inverse of the /kCHUNK switch.
I'd like to be able to do a /rgAMA to specifically remove the gamma chunk by name, if it exists.
Obviously, I _could_ use the existing "keep" switch, however that requires me to anticipate every possible chunk that I might encounter and want to keep ahead of time and then add it to the command line. That's kind of a pain. Re: PNGOUT feature request - remove chunk instead of keep chunk
You could make a batch file to enter the switches for you.
Wait .. I'll do it for you..%~dp0pngout %1 /kbKGD,pHYs,cHRM,iCCP,sRGB,sBIT,sPLT,hIST,tIME,iTXt,tEXt,zTXt
This keeps all the chunks except gAMA
Just copy that into a .bat or .cmd file, place it in the same directory as pngout and call that instead of pngout.
You can modify the script to your liking.
You/I can do the same to the extensive pngslim script too , if you really want to squeeze every last byte out of the PNG without removing certain chunks.