jhead-ruby
Warning: under development, not stable and not tested yet.
This lib is a wrapper for the jhead command line tool, written by Matthias Wandel. www.sentex.ca/~mwandel/jhead
Examples
Get the EXIF Date/Time:
photo = Jhead.new("photo.jpg")
photo.date_time # => Fri Aug 27 15:53:53 1000 2010
Set the EXIF Date/Time and change the file's system timestamp:
Jhead.new("photo.jpg") do |p|
p.date_time = Time.now
p.update_system_time_stamp
end
Delete comments of severals JPEG files:
Jhead.new("Desktop/*.jpg").delete_comment
Bugs
There's some known bugs about jhead. Please see jhead documentation (`man jhead' under Linux).
Author
Vivien Didelot 'v0n' <vivien.didelot@gmail.com>