Created
February 17, 2019 15:30
-
-
Save t9md/3094964dc150b737e9fb1b0dbd21df79 to your computer and use it in GitHub Desktop.
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
def copy_reduced_image(file) | |
puts "#### #{file}" | |
File.readlines(file).each do |line| | |
word = line.split("\t")[0] | |
cmd = "ffmpeg -y -i slideshow/imgs/#{word}.png -vf 'scale=1334:-1' -q 2 icloud-app/imgs/#{word}.png" | |
system cmd | |
# puts cmd | |
end | |
end | |
ARGV.each do |file| | |
copy_reduced_image file | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment