NEF images with the Sorting Script

I was pretty happy with my scanning and sorting script.

I shoot with a Nikon camera, so many of my images are NEF/RAW images.

Unfortunately, the exifr method doesn’t like NEF images, because they aren’t JPEGS.

Maybe they are TIFFs? Let’s give it a try!

if file.end_with?(".NEF")
     dateShot ="#{file}").date_time
     puts "it's a NEF"
     dateShot ="#{file}").date_time

so we replace the one line that extracts date with this “NEF checker” and it works!

Author: heinrich

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.