Skip to content

Instantly share code, notes, and snippets.

@voghDev
Created January 31, 2022 11:24
Show Gist options
  • Save voghDev/d13982bbe974aa50cf27f3fd4b378486 to your computer and use it in GitHub Desktop.
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
#!/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