Skip to content

Instantly share code, notes, and snippets.

@nisanthchunduru
Created October 1, 2017 13:50
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 nisanthchunduru/42c41a1a064b2324a8e1c392a2043122 to your computer and use it in GitHub Desktop.
Save nisanthchunduru/42c41a1a064b2324a8e1c392a2043122 to your computer and use it in GitHub Desktop.
Strip location information and additional metadata from your photos using ruby
# 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