plegall / Piwigo-write_metadata

3 stars 4 forks source link

Improvement: Add ignore minor errors and warnings (-m) option as default to exiftool. #5

Open vovan69 opened 8 years ago

vovan69 commented 8 years ago

With the error checking based on the non-empty output of "exiftool -q ..." it probably would be useful to use by default "-m" option. In case of this "minor warnings" metadata is written correctly, but the plug-in indicates an error. From man page of exiftool:

   -m (-ignoreMinorErrors)
        Ignore minor errors and warnings.  This enables writing to files with minor errors and disables some validation checks which could result in minor warnings.
        Generally, minor errors/warnings indicate a problem which usually won't result in loss of metadata if ignored.  However, there are exceptions, so ExifTool
        leaves it up to you to make the final decision.  Minor errors and warnings are indicated by "[minor]" at the start of the message.  Warnings which affect
        processing when ignored are indicated by "[Minor]" (with a capital "M").

I've seen quite a lot of "minor" warnings from some phones which are writing "buggy" metadata.