Author Topic: "File format error" casued by .JPG_original files when Geotagging  (Read 2759 times)

lifeofdave

  • Jr. Member
  • **
  • Posts: 14
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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16703
    • ExifTool Home Page
Re: "File format error" casued by .JPG_original files when Geotagging
« Reply #1 on: January 10, 2013, 12:27:43 PM »
This is likely a problem with specifying "*.*" on the command line.  Use ". -ext jpg" instead.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lifeofdave

  • Jr. Member
  • **
  • Posts: 14
Re: "File format error" casued by .JPG_original files when Geotagging
« Reply #2 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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16703
    • ExifTool Home Page
Re: "File format error" casued by .JPG_original files when Geotagging
« Reply #3 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).