|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 . 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/. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
[Note: parts of this message were removed to make it a legal post.]
2008/5/27 frog cgc <isfrog@gmail.com>: > 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 . > > 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 |
|
![]() |
| Outils de la discussion | |
|
|