Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Ruby wrapper of the jhead command line tool

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 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>

Something went wrong with that request. Please try again.