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:[EMAIL PROTECTED]] 
Sent: Thursday, December 27, 2001 2:08 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to