ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: shailaja.vemula on April 25, 2019, 02:04:20 PM

Title: How to extract GPS coordinates from TIFF image file
Post by: shailaja.vemula on April 25, 2019, 02:04:20 PM
Hi,

I am trying to find GPS coordinates information from TIFF image files using ExifTool but I am unable to find them. Can you please guide me?


Thanks.
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: Phil Harvey on April 25, 2019, 02:05:37 PM
exiftool "-gps*" SOME_FILE.tiff

If this produces no output, then the file probably doesn't contain GPS information.

- Phil
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: shailaja.vemula on April 25, 2019, 02:16:50 PM
Sorry, I am new to this.  SOME_FILE.tiff - is this should be a file name?

Thanks.
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: StarGeek on April 25, 2019, 02:43:55 PM
Yes.

If your current directory is the one that has the image, then all you need is the image name.  Otherwise you'll need to provide the full path.  For single files, you can drag the file from the desktop into the command/terminal window.  If you have more files, Linux/Mac supports dragging multiple files, but Windows doesn't.
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: shailaja.vemula on April 25, 2019, 05:05:45 PM
Hi,

I attached a screenshot which is showing an error, can you please look at this?


Thanks.

(https://exiftool.org/forum/index.php?action=dlattach;topic=10079.0;attach=3032)

SG edit: inlined image
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: StarGeek on April 25, 2019, 05:12:54 PM
You need a space after "-gps*" otherwise the filename gets connected to the tag name.

My apologies for not mentioning it if you're dragging/dropping like I suggested.

The second error seems to be an incorrect file name.  I'm assuming the .tiff was added afterwards.  Otherwise, if the file exists, it should have worked.
Title: Re: How to extract GPS coordinates from TIFF image file
Post by: shailaja.vemula on April 26, 2019, 10:59:07 AM
Hi,

Amazing, it worked. Thank you very much for your help.