The call is correct.  I think you forgot to require exifr (and rubygems);

  require 'rubygems'
  require 'exifr'

  puts EXIFR::JPEG.new("/file/is/here/tests/data/exif.jpg").date_time

HTH,
Remco


On 5/12/07, 12 34 <rubyforum / web.knobby.ws> 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.
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
http://blog.remvee.net/