2

I'm currently using exif_read_data to load the information from JPG, JPEG, TIFF and TIF files.

Is there a simple way to manually read other images (ex. PNG, BMP, GIF)? Using fread, or something similar?

Nahydrin
  • 13,197
  • 12
  • 59
  • 101
  • 2
    GIF and BMP don't have meta data. PNG very seldomly. Or do you just want height and width? – mario Jan 10 '12 at 20:54
  • 1
    Duplicate: http://stackoverflow.com/questions/2190236/how-can-i-read-png-metadata-from-php http://stackoverflow.com/questions/4093393/fastest-way-to-read-png-metadata-in-php – Diego Agulló Jan 10 '12 at 20:55

1 Answers1

4

BMP and GIF don't support any metadata I believe.

May be you want to find out, if there are any metadata readable at all, before finding the way to read it.

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345