Posted: 2006-08-31T10:51:50-07:00
This code is originaly from Anthonys's example site:
Its a while since I did this and can not rember what it all means
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
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