Back to the snippets index

Clone ( Anthony 14/6/2008 )

This code reads in the image, copys it with +clone, resizes and saves it. Then resizes and saves the next size. The part of the code within the \( \) has no effect on any of the other part of the code.

IM code:

"input.jpg \( +clone -resize 600x600 -write first_save.jpg +delete \)".
" -resize 60x60 thumbnail.jpg ";
exec("convert $cmd");

Crop an image
Crop an image into pieces
Dividing an image
Keep minimum image size
New image size in variable
Resize if over certain size
Resize keep aspect ratio.
Resize no aspect ratio.
Speed up jpg resize