Created
October 1, 2017 13:50
-
-
Save nisanthchunduru/42c41a1a064b2324a8e1c392a2043122 to your computer and use it in GitHub Desktop.
Strip location information and additional metadata from your photos using ruby
This file contains hidden or 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
# Install imagemagick first | |
# brew install imagemagick | |
require "shellwords" | |
photos_dir = "ENV['Home']/Downloads/Photos to Upload" | |
Dir["#{photos_dir}/**/*"].each do |file_path| | |
system("mogrify -strip #{Shellwords.shellescape(file_path)}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment