I have a PNG image which I am trying to trace to its origi开发者_JAVA百科nating city.
I was told that someone was able to do this by extracting an IP from the PNG's metadata, but I am skeptical of this. It doesn't make sense to me that an image editor would bother to include the IP address of the computer at the time it was saved, or that the PNG specification would even have a place reserved for this information.
Assume the picture is hosted on TinyPic. Do any of you know a way to find the information I am looking for?
EDIT: The image had some edits made to it, and I am trying to find the source of that edition of the image. I am interested in information that the image editing software may have crammed in there, or any ways of finding the source of the image that may not be related to PNG (I have emailed TinyPic and asked for it, for example).
Thank you to those who have suggested answers already.
I think what your looking for is getting the geotags associated with a PNG. That will be a lat/long where the picture was taken. Most cellphones insert his information, and some cameras. While you might be able to get the IP address from the metadata it's not particularly accurate. At best a general region or city if you're lucky. For why that is see this answer:
How does geographic lookup by IP work?
You can check the extensions and specs to the standard here to find geo and if your IP address idea exists:
http://www.libpng.org/pub/png/
Some cameras may embed geolocation information in the photos they take, but not many.
You could use this library/tool to look at the meta-data: http://owl.phy.queensu.ca/~phil/exiftool/ You're probably interested in the bits on geotagging.
精彩评论