Displaying 2 results from an estimated 2 matches for "camera_make".
2006 May 10
0
Saving extracted data
...e_attribute("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 metho...
2006 Apr 24
0
ImageMagick and EXIF Data
...uirements will be displayed. The picture is stored on the file
system, and not in the DB. I''m a little lost as to where to actually perform
the parse on the EXIF data though. I know it should probably be done 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_entr...