elodie icon indicating copy to clipboard operation
elodie copied to clipboard

Feature request: support for NRW and RAF files

Open muhittink opened this issue 1 year ago • 1 comments

...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?

muhittink avatar Aug 13 '23 21:08 muhittink

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

kyushuadamu avatar May 29 '24 01:05 kyushuadamu