Created
June 8, 2016 12:24
-
-
Save pi-chan/dac76d288e2788d7439267d56f0ed6c4 to your computer and use it in GitHub Desktop.
4.7inchの画像から無理矢理全サイズひねり出すスクリプト
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
targets = { | |
'3.5' => '540x960 -bordercolor "#F5F5F5" -border 50x0', | |
'4.0' => '640x1136!', | |
'4.7' => '750x1334!', | |
'5.5' => '1242x2208!' | |
} | |
targets.each do |k, v| | |
(1..4).each do |i| | |
system "mkdir #{k}inch" | |
system "convert -geometry #{v} image#{i}.jpg ./#{k}inch/image#{i}.jpg" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment