ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: lifeofdave on January 10, 2013, 11:47:53 AM

Title: "File format error" casued by .JPG_original files when Geotagging
Post by: lifeofdave on January 10, 2013, 11:47:53 AM
I'm finding that when using -geotag with a whole directory of images exiftool tries to geotag the .JPG_original files that it has just created, resulting in an "Error: File format error - E:/..../._IMG_2481_4Q_5k.JPG" for every .original file.

It doesn't actually cause any issues, but when setting up exiftool for my colleagues who are less computer literate the errors can cause some confusion. Is there an easy way to suppress this error or another way round that I'm missing?

Once again, thanks for any help.
Title: Re: "File format error" casued by .JPG_original files when Geotagging
Post by: Phil Harvey on January 10, 2013, 12:27:43 PM
This is likely a problem with specifying "*.*" on the command line.  Use ". -ext jpg" instead.

- Phil
Title: Re: "File format error" casued by .JPG_original files when Geotagging
Post by: lifeofdave on January 10, 2013, 05:16:56 PM
Great, that's helped. Even just using C:\folder\*.* instead of C:\folder filters out the .original files.
Title: Re: "File format error" casued by .JPG_original files when Geotagging
Post by: Phil Harvey on January 10, 2013, 06:39:57 PM
Now I'm confused.

If you specify the file on the command line, then exiftool will process it.  It doesn't matter if the name ends with "_original", exiftool will process it anyway.

Specifying C:\folder\*.* will process all files in the directory that have a "." in the file name, including "_original" files.

Specifying C:\folder won't process "_original" files.

Specifying C:\folder -ext jpg will limit the processing to only .jpg (and .JPG) files in the directory.

- Phil