Problem with Install on a Windows Server and ImageMagick - Page 2 Problem with Install on a Windows Server and ImageMagick - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem with Install on a Windows Server and ImageMagick

Started by kclark0153, November 02, 2003, 08:19:47 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Track

Quote from: "moorey"
QuoteName = Leo Walbeek
submit_by = yggie@yggie.nl
subject = ImageMagick works under windows
message = Just a TIP!
(I didn't know where to put it!)

If you have trouble getting IM to work under windows, try to copy the cmd.exe to the PHP directory. For me it worked!

this worked for me too, been messing with permissions for a whole day now with no luck till i tried that, thx for the tip

Tarique Sani

One of my programmer has suggested the following hack to make Image Magick work on Windows + Apache even if IM is installed in c:\program files etc
in picmgmt.inc.php put

           /*
             * Hack for working with ImageMagick on WIndows even if IM is installed in C:\Program Files.
             * By Aditya Mooley <aditya@sanisoft.com>
             */
            if (eregi("win",$_ENV['OS'])) {
                $cmd = "\"".str_replace("\\","/", $CONFIG['impath'])."convert\" -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} ".str_replace("\\","/" ,$src_file )." ".str_replace("\\","/" ,$im_dest_file );
                exec ("\"$cmd\"", $output, $retval);
            } else {
                $cmd = "{$CONFIG['impath']}convert -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} $src_file $im_dest_file";
                exec ($cmd, $output, $retval);
            }


instead of just

                $cmd = "{$CONFIG['impath']}convert -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} $src_file $im_dest_file";
                exec ($cmd, $output, $retval);


Can someone test this claim?
SANIsoft PHP applications for E Biz

deranged

Quote from: Ron on November 02, 2003, 04:42:40 PM
If you use W2003 just be shure to allow CMD.exe as an extention (just like PHP).

Sorry for being a n00b

I tried the search etc.
But how do I do this? I know where, since I manually added the php.exe associated with .php but what extension should I use to associate with cmd.exe?

thanx in advance

john00

what he said ^^ and how do i allow read/write with IM?

dancerk8