RE: [PHP-WIN] Image Magick on Windows NT?

From: Date: Sat, 29 Dec 2001 00:28:30 +0000
Subject: RE: [PHP-WIN] Image Magick on Windows NT?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11198@lists.php.net to get a copy of this message
Below is an example code from an IIS webserver with PHP installed, and the php is calling on IM to create a thumbnail. It's been working fine for me. Hope this helps. // if using convert, find where convert is (you could just manually configure it, too) if ($thumbnails == "convert" && $my_convert_path == "") { @exec("which convert", $tmp); $my_convert_path="D:\ImageMagick\convert.exe"; if ($my_convert_path=="") $thumbnails="none"; } @exec($my_convert_path . ' -geometry ' . round($neww) . "x" . round($newh) . ' -quality 50 "' . $createfn . '" "' . $thumbnailfile . '"'); There's a lot more to it than this, but this is the basic idea. You call IM the same way you would in *inx but you just use the windows style path such as C:\whatever\directory\im.exe or D:\whatever\other\directory\im.exe -----Original Message----- From: Damiano Ferrari [mailto:damianoferrari@hotmail.com] Sent: Thursday, December 27, 2001 2:08 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Image Magick on Windows NT? I wrote a script that will create a thumbnail page for all the pictures in a given directory. The thumbnails are created with the GD libraries and while it all works, the result is.. well, very low quality, the .jpg images actually look like .gif. Is there any way I can use Image Magick on Windows NT (and PHP 4.1.0)? If not, is there any other viable solution? Damiano -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#11198) next »