Use to use mogrify to create a thumbnail of an image

From: Phil Powell (soazine_at_erols.com)
Date: 07/28/04


Date: 27 Jul 2004 15:35:38 -0700


[PHP]
                 $mogResponse = exec("mogrify -size ${width}x$height " .
                                                  $this->locationPath . '/' . $this->fileName . '
-resize ' .
                                                  $width . "x$height > +profile " .
                                                  $this->thumbLocationPath . '/' . $this->fileName
. ' 2>&1');
[/PHP]

This attempt at creating a thumbnail only causes the original image to
be resized while creating a "ghost image" in the /thumb folder where
the thumbnail should be.

Could someone show me exactly how to use mogrify to generate a
thumbnail in another folder while keeping the original image intact?

BTW imagecreatetruecolor() is not an option in this case because I'm
working with PHP 4.1.2

Thanks
Phil



Relevant Pages