Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ios-icon-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ OPTIONS:
-h Show this help message and exit

EXAMPLES:
$prog 1024.png ~/123
- ./$prog 1024.png ~/123
- sh $prog 1024.png ~/123
- bash $prog 1024.png ~/123

EOF
exit 1
Expand Down Expand Up @@ -139,7 +141,7 @@ dst_path=$2
# check source file
[ ! -f "$src_file" ] && { error "The source file $src_file does not exist, please check it."; exit -1; }

# check width and height
# check width and height of source file
src_width=`sips -g pixelWidth $src_file 2>/dev/null|awk '/pixelWidth:/{print $NF}'`
src_height=`sips -g pixelHeight $src_file 2>/dev/null|awk '/pixelHeight:/{print $NF}'`

Expand Down