Skip to content

Instantly share code, notes, and snippets.

@vikjam
Last active January 21, 2019 17:11
Show Gist options
  • Save vikjam/57ace1bdaa878f7fcd2f8c39aa1d7319 to your computer and use it in GitHub Desktop.
Save vikjam/57ace1bdaa878f7fcd2f8c39aa1d7319 to your computer and use it in GitHub Desktop.
Copy EXIF info from one photo to another
require 'mini_exiftool'
photo = MiniExiftool.new('new.jpg')
photo.tags.sort.each do |tag|
photo.copy_tags_from('original.jpg', tag)
end
photo.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment