Fastest way to read PNG metadata in PHP
I would like to extract two fields from a PNG file. Namely, the geometry field and one of the fields from the metadata. What is the fastest way I could go about doing this? I have benchmarked my script that currently performs this and by far the slowest action is executing the actual ImageMagick "identify" program on the PNG file. (.4 seconds vs .0001 seconds to parse the outputted array for the geometry and 8.39E-5 seconds to parse key phrases from the metadata) Thanks in advance for any help, Jonathan I'm not familiar with any ready-made libraries or classes to do it in PHP without a