Title says eve开发者_StackOverflow中文版rything.
I'm using MiniExiftool, a ruby interface to Perl's Exiftool.
- https://github.com/janfri/mini_exiftool
- http://www.sno.phy.queensu.ca/~phil/exiftool/
Usage:
exif = MiniExiftool.new(file_path)
exif.date_time_original = Time.now
exif["captionextract"] = "This is my new caption"
exif.save
There is also: https://github.com/janfri/multi_exiftool
Have you tried exifr?
EXIF Reader is a module to read EXIF from JPEG and TIFF images.
Try ruby-libexif: http://raa.ruby-lang.org/project/ruby-libexif/
Usage: http://74.125.113.132/search?q=cache:yjOeG4UnD38J:tach.arege.net/trac/browser/debian/libexif-ruby/trunk/exif.rd.en%3Frev%3D51%26format%3Draw+ruby+set+exif+tag&cd=10&hl=en&ct=clnk&gl=us&client=firefox-a
精彩评论