Page 1 of 1

Something wrong with my install... please help!

Posted: 2007-07-16T12:31:13-07:00
by anakinjay
I get no error messages, but I can't use *any* of the image magick functions. For example,




Code: Select all

<?php
$resource = NewMagickWand();
MagickReadImage( $resource, 'template.jpg' );

header( 'Content-Type: image/jpeg' );
MagickEchoImageBlob( $resource );

?>
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:

Code: Select all

<?
  header('Content-Type: text/plain');
  system("c:\php\imagick\convert.exe -version");
?>
The above code works just fine, and shows me the version #.

Code: Select all

<?
  header('Content-Type: text/plain');
  system("c:\php\imagick\convert.exe -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.

Re: Something wrong with my install... please help!

Posted: 2007-07-18T06:45:18-07:00
by anakinjay
UPDATE:
--------------------

It's still broken, but I figured out it displays the URL because the file has zero bytes in it. If I change the content-type to something unknown it lets me download the file, but it has zero bytes, and is completely blank.

Re: Something wrong with my install... please help!

Posted: 2007-08-27T03:24:20-07:00
by ali
hi,

im having the same problem on my debian etch server... i compiled magickwand for php with my php5.2.0, magickwand and imagemagick are up-to-date! the imagick extension is working, so i think the problem is on the magickwand side... it dont saves images, and dont echo them out... dont know why!

Re: Something wrong with my install... please help!

Posted: 2007-08-27T06:12:24-07:00
by ali
now i know, why it happens, downgrade to ImageMagick v6.3.4, look here

viewtopic.php?f=10&t=9426
and
viewtopic.php?f=3&t=9403