A Ruby wrapper of the jhead command line tool
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with vivien:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.rdoc
jhead.spec.rb

README.rdoc

jhead-ruby

Warning: Not maintained anymore.

I don't need jhead anymore. What jhead-ruby can do for the moment? Every reading/writing methods should work. It needs test cases, and small fixes on writing methods (see TODOs).

Presentation

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>