Skip to content

Feature to correct file extensions #9

@jeffsenn

Description

@jeffsenn

I get a fair number of these errors when trying to embed using exiftool. (b/c exiftool determines type by file extension and won't recover if there is a mismatch):

✍️ Embedding metadata: [🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜] 62% (31382 / 50146)Error: Not a valid HEIC (looks more like a JPEG) - .../IMG_xxxx.HEIC
0 image files updated
1 files weren't updated due to errors

Desirable feature: if that error happens, then attempt to re-name file and re-try exiftool command.
Ironically exiftool has the perfect command to determine file type:

exiftool -FileType yourfile.heic --> File Type : JPEG

It would be possible to do this as a post-copy step on the whole corpus, but maybe not that efficient since, even though I have a lot of these, they are a small overall percentage of everything

PS Great tool! Very helpful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions