Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created June 23, 2010 00:43
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 gilesbowkett/449321 to your computer and use it in GitHub Desktop.
Save gilesbowkett/449321 to your computer and use it in GitHub Desktop.
`ls input_dir/filenames*`.each_with_index do |image, index|
image.chomp!
image.gsub!(/ /, "\\\\ ")
filename = "output_dir/picture_#{index}.jpg"
system "convert -density 72 -size 400x300 #{image} #{filename} ; amazon -b my_bucket_name #{filename}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment