Something wrong with my install... please help!
Posted: 2007-07-16T12:31:13-07:00
I get no error messages, but I can't use *any* of the image magick functions. For example,
The above code just spits out the URL of the php page. If I type in a file name that doesn't exist, I'll get an error. But if I type in one that is really there, I just get the URL.
I think it *might* have something to do with the path or environments not being able to find the tools it needs to, but again.. I'm not sure. Here's what makes me think that though:
The above code works just fine, and shows me the version #.
this code however, does not work and displays a blank page. No error message or anything just blank.
Here's my facts:
---------------------------------------
PHP 5.2.3
IIS 6
Windows 2K3
ImageMagick 6.3.5 Q16
extension=php-5.2.0_magickwand_dyn.dll
--------------------------------------------------
Configuration info:
from php_info() page:
magickwand
MagickWand Backend Library ImageMagick
MagickWand Extension Version 0.1.8
ImageMagick support enabled
ImageMagick version ImageMagick 6.3.5 07/14/07 Q16 http://www.imagemagick.org
ImageMagick QuantumRange (MaxRGB) 65535
MagickWand supported image formats A, ART, AVI, AVS, B, BIE, BMP, BMP2, BMP3, C, CACHE, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CUR, CUT, DCM, DCX, DFONT, DJVU, DOT, DPS, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, EXR, FAX, FITS, FPX, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HDF, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, INFO, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MSL, MSVG, MTV, MVG, NULL, O, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMZ, WPG, X, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV
Other:
It is installed to folder c:\php\imagick
I have c:\php\imagick in the windows path variable
and I also have a MAGICK_HOME env. variable pointing to c:\php\imagick.
Any help would be super appreciated guys... kind of pulling my hair out here.
Code: Select all
<?php
$resource = NewMagickWand();
MagickReadImage( $resource, 'template.jpg' );
header( 'Content-Type: image/jpeg' );
MagickEchoImageBlob( $resource );
?>
I think it *might* have something to do with the path or environments not being able to find the tools it needs to, but again.. I'm not sure. Here's what makes me think that though:
Code: Select all
<?
header('Content-Type: text/plain');
system("c:\php\imagick\convert.exe -version");
?>
Code: Select all
<?
header('Content-Type: text/plain');
system("c:\php\imagick\convert.exe -version");
?>
Here's my facts:
---------------------------------------
PHP 5.2.3
IIS 6
Windows 2K3
ImageMagick 6.3.5 Q16
extension=php-5.2.0_magickwand_dyn.dll
--------------------------------------------------
Configuration info:
from php_info() page:
magickwand
MagickWand Backend Library ImageMagick
MagickWand Extension Version 0.1.8
ImageMagick support enabled
ImageMagick version ImageMagick 6.3.5 07/14/07 Q16 http://www.imagemagick.org
ImageMagick QuantumRange (MaxRGB) 65535
MagickWand supported image formats A, ART, AVI, AVS, B, BIE, BMP, BMP2, BMP3, C, CACHE, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CUR, CUT, DCM, DCX, DFONT, DJVU, DOT, DPS, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, EXR, FAX, FITS, FPX, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HDF, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, INFO, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MSL, MSVG, MTV, MVG, NULL, O, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMZ, WPG, X, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV
Other:
It is installed to folder c:\php\imagick
I have c:\php\imagick in the windows path variable
and I also have a MAGICK_HOME env. variable pointing to c:\php\imagick.
Any help would be super appreciated guys... kind of pulling my hair out here.