jmathai / elodie

An EXIF-based photo assistant, organizer and workflow automation tool.
https://bit.ly/introducing-elodie
Apache License 2.0
1.25k stars 137 forks source link

Feature request: support for NRW and RAF files #458

Open muhittink opened 11 months ago

muhittink commented 11 months ago

...would be great! NRW=NIKON; RAF=FUJIFILM

However, I've played around and added NRW to valid extensions. It works like a charm. But when I add RAF to the extensions list, it says:

/DCIM/108_FUJI/DSCF8797.RAF is not a valid media file. Skipping...

I can read the EXIF information with exiftool, where is the problem with this extension?

kyushuadamu commented 1 month ago

Both libraries used to check if files are images do not support Fujifilm RAF. Elodie still seems to read the exif data with exiftool if you bypass the use of imghdr and pillow in the photo.py is_valid check. In addition to adding raf to the list of extensions in photo.py, you also need to change this:

if(extension != 'heic'):

to

if(extension != 'heic' and extension != 'raf'):

@muhittink