How to update EXIF ​​image file tags in Ruby?

The name says it all.

+5
source share
3 answers

I am using MiniExiftool, a ruby ​​interface for Perl Exiftool.

http://miniexiftool.rubyforge.org/

http://www.sno.phy.queensu.ca/~phil/exiftool/

Using:

exif = MiniExiftool.new (file_path)

exif.date_time_original = Time.now

exif ["captionextract"] = "This is my new signature"

exif.save

+4
source

Have you tried exifr ?

+1
source

All Articles