Displaying 3 results from an estimated 3 matches for "get_exif_by_entry".
2006 Jun 22
2
OT EXIF libraray
Hi-
this is slightly off topic, but is anyone aware of a WORKING ruby library that reads EXIF data from JPEG files?
It has to run on both Windows and *nix, so wrappers around unix libs won''t do.
So far I tried rexif, ruby-exif (both throwing exceptions when presented with a JPEG) and RMagick (at least able to get the date
from EXIF, however it adds a ''.'' at the end for
2006 Apr 24
0
ImageMagick and EXIF Data
...one in the
image model. In my DB I have columns named "camera_model", "camera_make",
"focal_length", etc... Here''s what I ''think'' I need to do to grab the the
data from the image file:
def load_exif_data(image)
self.shutter_speed = image.get_exif_by_entry("ShutterSpeedValue")[0][1]
self.aperture = image.get_exif_by_entry("ApertureValue")[0][1]
self.iso_speed = image.get_exif_by_entry("ISOSpeedRatings")[0][1]
self.camera_model = image.get_exif_by_entry("Model")[0][1]
self.focal_length = image.ge...
2006 May 10
0
Saving extracted data
...ot;file_size", file_data.size)
read_attributes(file_data)
end
I also want to read the attributes of the EXIF data embedded in the picture
doing something like this (this the short form):
def read_attributes(file_data)
img = Magick::Image.from_blob(file_data.read)
camera_makeimg.get_exif_by_entry(''Make'')
write_attribute("camera_make", camera_make)
end
However, when I do this I get an error of:
undefined method `get_exif_by_entry'' for [ JPEG 3504x2336 3504x2336+0+0
DirectClass 8-bit 3544kb]:Array
get_exif_by_entry is a method for ImageMagick
htt...