Created
January 31, 2022 11:24
-
-
Save voghDev/d13982bbe974aa50cf27f3fd4b378486 to your computer and use it in GitHub Desktop.
Really simple shell script (almost just an alias) to resize a PNG image
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
#!/bin/bash | |
if [ -z $1 ] | |
then | |
echo "Usage: ./resize.sh input.png" | |
else | |
convert $1 -resize 40% resize-output.png | |
display resize-output.png | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment