Posted by Marc Nadeau on 07/24/05 04:52
Zbigniew Lisiecki a écrit:
> zbyszek
> ps: how could one shrink *jpg images in batch
I myself wrote an image galery php script that does batch resizing using
imageMagick as a backend.
copy(image_file, $thumbnail_file);
$thumb_size = '100x100';
$command = "$PATH_TO_IMAGEMAGICK/mogrify -size $thumb_size -resize
$thumb_size +profile \"*\" \"$thumbnail_file);\" ";
exec($command);
It's amazingly fast.
But you have to install imageMagick first.
A must.
--
Cogito ergo sum... et tralala
Marc Nadeau, webmestre, La Pagerie, http://www.pagerie.com
[Back to original message]
|