Figured it out. The following code block will add the get_exif method to the Carrierwave loader
def get_exif( name ) manipulate! do |img| return img["EXIF:" + name] end end
Just pass it the name EXIF, for example "DateTimeOriginal", and it will return the data.
It is one thing to keep in mind, however, that if you are using Mongoid with GridFS or something else that current_path does not provide, manipulate! depends on it. For Mongoid, you can either create a temporary file, or transfer it to this path, or switch to the file storage instead of GridFS.
source share