Last active
January 21, 2019 17:11
-
-
Save vikjam/57ace1bdaa878f7fcd2f8c39aa1d7319 to your computer and use it in GitHub Desktop.
Copy EXIF info from one photo to another
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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