Skip to content

Instantly share code, notes, and snippets.

@richardpeng
Created October 7, 2010 15:24
Show Gist options
  • Save richardpeng/615268 to your computer and use it in GitHub Desktop.
Save richardpeng/615268 to your computer and use it in GitHub Desktop.
#!/bin/bash
# aa.sh
# Scale and crop album art for embedding in music tags
if [ -z $1 ]
then
echo "Usage: `basename $0` image_file"
else
convert $1 -resize 300x300^ -gravity center -extent 300x300 folder.jpg
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment