Re: imagick 3.0.1 on Windows
| From: | Richard Quadling | Date: | Wed, 26 Jan 2011 10:14:13 +0000 |
| Subject: | Re: imagick 3.0.1 on Windows | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7951@lists.php.net to get a copy of this message | ||
On 25 January 2011 20:20, Tomasz Krawczyk <tomkrawc@gmail.com> wrote:
> Hi!
>
> I have a problem with imagick extension. I compiled it with VC6 TS for my
> WampServer and VC9 NTS for IIS. In both cases two of four examples from
> source code work (captcha.php and polygon.php) but two others (watermark.php
> and thumbnail.php) hang my web servers. Of course I corrected file names,
> font names and so on. It should work.
>
> After small investigation I'm sure that function readImage causes the
> problem.
>
> If file doesn't exist I get an error message:
>
> "Uncaught exception 'ImagickException' with message 'Unable to read the
> file: /tmp/test.jpg' in D:\wamp\www\imagick\watermark.php:16 Stack trace: #0
> D:\wamp\www\imagick\watermark.php(16): Imagick->readimage('/tmp/test.jpg')
> #1 {main} thrown in D:\wamp\www\imagick\watermark.php on line 16"
>
> which is correct. But if file exists I do not get any message. Server
> crashes.
>
>
> Can anyone confirm this issue? Can I fix this some how?
>
> regards
> Tomek
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I get the same issue.
I'm using the command line rather than a browser.
Running thumbnail.php as is ... exception (as expected). Running
polygon.php>polygon.png ... all OK.
Changing thumbnail.php to use the newly created polygon.png ... crash
generated at the $im->readImage( './polygon.png' ); line.
Using ...
php --ri imagick
imagick
imagick module => enabled
imagick module version => @PACKAGE_VERSION@
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version => ImageMagick 6.6.6-6 2010-12-18 Q8
http://www.imagemagick.org
ImageMagick copyright => Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick release date => 2010-12-18
ImageMagick number of supported formats: => 211
ImageMagick supported formats => 3FR, A, AI, ART, ARW, AVI, AVS, B,
BGR, BGRA, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION,
CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR,
DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, EMF, EPDF, EPI, EPS, EPS2,
EPS3, EPSF, EPSI, EPT, EPT2, EPT3
, ERF, EXR, FAX, FITS, FPX, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT,
GRAY, GROUP4, HALD, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO,
INLINE, IPL, ISOBRL, J2C, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K,
K25, KDC, LABEL, M, M2V, M4V, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV,
MP4, MPC, MPEG, MPG, MRW, MSL,
MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN,
PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB,
PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32,
PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R,
RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO
, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG,
SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT,
UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMV,
WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA,
YUV
Directive => Local Value => Master Value
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
I'm just rebuilding with --enable-debug.
Richard.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY