From: Thomas Preymesser Date: 2008-05-27T18:14:56+09:00 Subject: Re: EXIF Library ------=_Part_23873_8162151.1211879735889 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/5/27 frog cgc : > 12 34 wrote: > > Newbie here. What's the syntax to read say the date and time the picture > > was taken? > > > > I tried: > > > > puts EXIFR::JPEG.new("/file/is/here/tests/data/exif.jpg").date_time > > > > and got: NameError: uninitialized constant EXIFR > > > > Maybe I didn't get it installed right? > > > > Thanks for any help. > > I got the same error in "rb" file . > but all were OK when run code from 'irb' ! > Anyone will tell me why? > -- > Posted via http://www.ruby-forum.com/. > > require 'rubygems' require 'exifr' p EXIFR::JPEG.new('IMG_4061.JPG').date_time ------=_Part_23873_8162151.1211879735889--