Created
August 14, 2011 11:03
-
-
Save wridgers/1144803 to your computer and use it in GitHub Desktop.
Converting a CubeCart install to a PrestaShop install. Part 3.
This file contains 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 | |
file=$1 | |
id=$2 | |
echo Making 45x45 | |
convert $1 -resize 45x45^ -gravity center -extent 45x45 ./out/$2-$2-small.jpg | |
echo Making 80x80 | |
convert $1 -resize 80x80^ -gravity center -extent 80x80 ./out/$2-$2-medium.jpg | |
echo Making 129x129 | |
convert $1 -resize 129x129^ -gravity center -extent 129x129 ./out/$2-$2-home.jpg | |
echo Making 300x300 | |
convert $1 -resize 300x300^ -gravity center -extent 300x300 ./out/$2-$2-large.jpg | |
echo Making 312x312 | |
convert $1 -resize 312x312^ -gravity center -extent 312x312 ./out/$2-$2.jpg | |
echo Making 600x600 | |
convert $1 -resize 600x600^ -gravity center -extent 600x600 ./out/$2-$2-thickbox.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment