php-imagine / Imagine

PHP Object Oriented image manipulation library
https://imagine.readthedocs.io
Other
4.42k stars 530 forks source link

Imagine can't work with PNG-24 and ImageMagick 7 #690

Closed ossinkine closed 5 years ago

ossinkine commented 5 years ago

Issue description

I've updated ImageImagick version 6.9.5 to 7.0.7 and image thumbnails in my app became empty image. I spent some time to debug and I've localized an issue. Removing this line fixes the issue. Replacing the constant IMGTYPE_TRUECOLORMATTE with IMGTYPE_TRUECOLOR also fixes the issue. I think this issue relates to #524.

What's the PHP version you are using?

7.1.23

What's the imaging library you are using [gd/imagick/gmagick/any]?

imagick

What's the imaging library configuration

imagick module => enabled
imagick module version => 3.4.3
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 7.0.7-32 Q16 x86_64 2018-05-15 https://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 7.0.7-32 Q16 x86_64 2018-05-15 https://www.imagemagick.org
ImageMagick copyright => © 1999-2018 ImageMagick Studio LLC
ImageMagick release date => 2018-05-15
ImageMagick number of supported formats:  => 224
ImageMagick supported formats => 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV

Directive => Local Value => Master Value
imagick.locale_fix => 0 => 0
imagick.skip_version_check => 0 => 0
imagick.progress_monitor => 0 => 0

Minimal PHP code to reproduce the error:


$imagine = new Imagine\Imagick\Imagine();
$image = $imagine->open($source);
$image->save($destination);

$source is the path for PNG-24 image. $destination is the path where will be an empty image after running this script.

PS: The same issue I reported has been strangely deleted.

mlocati commented 5 years ago

PS: The same issue I reported has been strangely deleted.

GitHub has had some issue: https://status.github.com/