I want every single details from the file i upload.. i am using attachment_fu, and i want to know that when the image is been taken , what is ISO , and which model of camera were used ,, ,, In short i want all the detailed property of image ,, Is it possible ? how ?
Share
The information you are looking is metadata called “Exif” (Exchangeable image file format), and is found in jpeg and tiff images. You can’t find this in png or gif files.
There is an Exif gem that reads this metadata. You can find it (and its documentation) here.
The tricky part may be to get it to work together with attachment_fu. The easiest way to do this is most likely to create a callback in your model: