5

I am uploading png images from iphone. I would like to read the gps information from the image. I am using EXIF Reader(GitHub) but it works only for gif and tiff format.

Any solution to read Exif data from png images will be useful

Dhepthi
  • 453
  • 4
  • 11

2 Answers2

3

exiftool supports PNG, and there are rubygems wrapping it:

I'm not sure what the difference between these two are, though.

Frost
  • 11,121
  • 3
  • 37
  • 44
1

ChunkyPNG supports this

img = ChunkyPNG::Image.from_file('image.png')
p img.metadata
ian
  • 12,003
  • 9
  • 51
  • 107
wvanbergen
  • 2,294
  • 15
  • 15