views:

1078

answers:

5

How can I access/remove PNG metadata?

I'm looking for a Mac application or a PHP snippet.

+1  A: 

Take a look at Smush_it image optimizer + API.

karim79
Awesome. Thanks for the link; this isn't the solution I'm looking for, but it seems real helpful in future web builds.
konzepz
+1  A: 

PNGCrush can remove metadata as well as optimize/recompress the bitmap images.

dajobe
Interesting. Thanks. Any clue as to how I compile it in Terminal?
konzepz
It's available in MacPorts if you have that installed, with "port install pngcrush". Otherwise you will need to follow the build instructions and may need the apple developer packages for headers etc.
dajobe
+2  A: 

Sorry to post a Windows software, but if you don't find anything good for MAC, there's TweakPNG, which is by far the best PNG disassembler I've seen.

Vilx-
+1. This is really, really good tool!
Otaku
A: 

A search for png on iUseThis yields a long list of apps for trimming pngs.

I have ImageOptim installed, but I cannot remember if that one really was the best of them all. I did try out a few.

neoneye
A: 

My answer to annother question gives a short Python script that removes all non-critical chunks. You'll need to download PyPNG, but that's just one Python file.

David Jones