开发者

How to update EXIF tags of a picture file in Ruby?

开发者 https://www.devze.com 2022-12-27 02:17 出处:网络
Title says eve开发者_StackOverflow中文版rything.I\'m using MiniExiftool, a ruby interface to Perl\'s Exiftool.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消