Use to use mogrify to create a thumbnail of an image
From: Phil Powell (soazine_at_erols.com)
Date: 07/28/04
- Next message: Phil Powell: "Use to use mogrify to create a thumbnail of an image"
- Previous message: Rubem Pechansky: "A native Windows binding for PHP"
- Next in thread: Ian.H: "Re: Use to use mogrify to create a thumbnail of an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Phil Powell: "Use to use mogrify to create a thumbnail of an image"
- Previous message: Rubem Pechansky: "A native Windows binding for PHP"
- Next in thread: Ian.H: "Re: Use to use mogrify to create a thumbnail of an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|