Skip to content

Instantly share code, notes, and snippets.

@miklblitz
Created September 12, 2017 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miklblitz/5db3cc2cb8a43def4afffc82e0920f54 to your computer and use it in GitHub Desktop.
Save miklblitz/5db3cc2cb8a43def4afffc82e0920f54 to your computer and use it in GitHub Desktop.
package search copyright information into pictures
require 'exifr/jpeg'
files = Dir['*.jpg', '*.jpeg']
files.each do |f|
im = EXIFR::JPEG.new(f)
p im.copyright if im.copyright
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment