Fix getting the image width
This commit is contained in:
parent
77d8f78e94
commit
5061bfba82
@ -26,7 +26,7 @@ usage () {
|
||||
echo "Usage: $name [OPTION]... CAPTION..."
|
||||
echo "Make an iFunny GIF caption."
|
||||
echo ""
|
||||
echo " -f, --font specify a font to use (default: ifunny.otf)"
|
||||
echo " -f, --font specify a font to use (default: $font)"
|
||||
echo " -i, --input the input file (required)"
|
||||
echo " -o, --output the output file (default: input)"
|
||||
echo " --help display this help and exit"
|
||||
@ -80,7 +80,7 @@ fi
|
||||
|
||||
captionWidth="512x"
|
||||
captionTemp=`mktemp --suffix=".png"`
|
||||
imageWidth=`convert "$input" -format "%[w]x" info:`
|
||||
imageWidth=`identify -ping -format "%[w]x\n" "$input" | head -n 1`
|
||||
|
||||
echo "$name: generating caption..."
|
||||
convert \
|
||||
|
Loading…
Reference in New Issue
Block a user