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
`convert -resize x#{thisSize.to_i*2} -resize 50% -gravity center -crop #{thisSize}x#{thisSize}+0+0 +repage #{amazon_file[:tempfile].path} #{tempfile_new.path}` |
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
#!usr/bin/env ruby | |
# This script takes a list of filenames from a given file and copies | |
# each of those files from one S3 bucket to another using the s3mcd library. | |
# Inputfile should have each filename termination by a newline character. | |
file, from, to = ARGV[0], ARGV[1], ARGV[2] | |
if file.nil? || from.nil? || to.nil? | |
puts "Invalid arguements. Should be filename from-s3-bucket to-s3-bucket" |
NewerOlder