Rmagick get date picture taken

I want to make a program to rename pictures based on the date and time
they were taken. How do I get the date (and time) a picture was taken?

···

--
Posted via http://www.ruby-forum.com/.

Unless the camera you were using has support for Exif metadata tags
and has been properly set up to generate them you're basically SOL. If
your camera has such tagging enabled, apparently RMagick has support
for reading Exif tags if they're present, and there's another library:

http://rubyforge.org/projects/exifr

capable of reading this data if it exists.

···

On 9/4/07, Jonathan Denni <jonsdenni@gmail.com> wrote:

I want to make a program to rename pictures based on the date and time
they were taken. How do I get the date (and time) a picture was taken?

--
普通じゃないのが当然なら答える私は何ができる?
普通でも普通じゃなくて感じるまま感じることだけをするよ!
http://stormwyrm.blogspot.com

Jonathan Denni wrote:

I want to make a program to rename pictures based on the date and time
they were taken. How do I get the date (and time) a picture was taken?
  

http://www.simplesystems.org/RMagick/doc/image2.html#get_exif_by_entry

···

--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/\]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618\]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html\]

Dido Sevilla wrote:

···

On 9/4/07, Jonathan Denni <jonsdenni@gmail.com> wrote:

I want to make a program to rename pictures based on the date and time
they were taken. How do I get the date (and time) a picture was taken?

Unless the camera you were using has support for Exif metadata tags
and has been properly set up to generate them you're basically SOL. If
your camera has such tagging enabled, apparently RMagick has support
for reading Exif tags if they're present, and there's another library:

http://rubyforge.org/projects/exifr

capable of reading this data if it exists.

Yes, the data is there. I just want to know what method to use to
access it in Ruby. The Rmagick documentation is just not very helpful
on that.

I think I will try exifr, it looks like it will probably be easier to
use.

thanks
--
Posted via http://www.ruby-forum.com/\.

Tim Hunter wrote:

Jonathan Denni wrote:

I want to make a program to rename pictures based on the date and time
they were taken. How do I get the date (and time) a picture was taken?
  

RMagick 1.15.0: class Image (instance methods, part 2)

Thankee, just what I was looking for :smiley:

···

--
Posted via http://www.ruby-forum.com/\.