我正在使用MiniExiftool,这是一个连接到Perl的Exiftool的Ruby接口。 https://github.com/janfri/mini_exiftool http://www.sno.phy.queensu.ca/~phil/exiftool/ 用法: exif = MiniExiftool.new(file_path) exif.date_time_original = Time.now exif["captionextract"] = "This is my new caption" exif.save 还有这个:https://github.com/janfri/multi_exiftool 这是一个链接,指向一个名为multi_exiftool的GitHub仓库。
尝试使用ruby-libexif: http://raa.ruby-lang.org/project/ruby-libexif/ 用法: 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