Code: Select all
exec("/usr/local/bin/convert -size 200x200 $image -thumbnail '100x100>' \
-gravity center -crop 120x120+0+0\! \
-background skyblue -flatten pad_view.jpg");
But I would guess:
original image size = -size 200x200
original image name = $image
Create a thumbnail = '100x100>'
Put the image in the center of a 120x120 box = -gravity center -crop 120x120+0+0\!
Box background colour = -background skyblue
-flatten
new image name = pad_view.jpg
The output of the code is at the bottom of this page - http://www.rubblewebs.co.uk/imagemagick/mosaic.php