Created
August 2, 2017 10:55
-
-
Save masaedw/a493f80bbd94e7b1fe33f885a349c681 to your computer and use it in GitHub Desktop.
Revisions
-
masaedw created this gist
Aug 2, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/bin/bash name=$1 dir=$(basename $name .jpg) if [[ ! -d $dir ]]; then mkdir $dir fi for i in 1040 1024 700 460 300 240; do convert -resize ${i}x -format jpeg $1 $dir/$i done mv $dir/1024 $dir/1024.jpg cp $dir/240 $dir/240.jpg