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.