Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support for NRW and RAF files #458

Open
muhittink opened this issue Aug 13, 2023 · 1 comment
Open

Feature request: support for NRW and RAF files #458

muhittink opened this issue Aug 13, 2023 · 1 comment

Comments

@muhittink
Copy link

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

@roperscrossroads
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants