Created
May 5, 2016 04:34
-
-
Save hrs113355/ebd40a75913c239c452b588a2c82f8d4 to your computer and use it in GitHub Desktop.
把Pad的隊伍截圖串成一張的工具
This file contains 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 iPhone P&D team images to one matome | |
images = Dir.glob('IMG*.PNG') | |
images.each do |f| | |
`convert #{f} -crop 750x126+0+464 crop_#{f}` | |
end | |
images = images.map{|f| "crop_#{f}"} | |
`convert #{images.join(' ')} -append result.png` | |
images.each do |f| | |
File.unlink(f) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment