elodie
elodie copied to clipboard
Feature request: support for NRW and RAF files
...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?
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