Search found 4 matches

by pmhausen
2018-02-20T08:53:28-07:00
Forum: Bugs
Topic: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG
Replies: 6
Views: 10597

Re: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG

OK, one more question. I'm trying to come up with a patch for pecl-imagick. The feature was introduced in 6.9.9-28 and changed in 6.9.9-30. 6.9.9-28: sGRAYColorspace 6.9.9-30: LinearGRAYColorspace How can I check the MagickLibVersion for these two versions? MagickLibVersion >= 0x699 won't cut it ...
by pmhausen
2018-02-20T08:12:37-07:00
Forum: Bugs
Topic: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG
Replies: 6
Views: 10597

Re: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG

Thanks! I found the responsible code. ImageMagick 6.9.9-28: typedef enum { UndefinedColorspace, RGBColorspace, /* Linear RGB colorspace */ GRAYColorspace, /* greyscale (linear) image (faked 1 channel) */ TransparentColorspace, [...] HCLpColorspace, YDbDrColorspace, xyYColorspace, sGRAYColorspace ...
by pmhausen
2018-02-20T03:37:30-07:00
Forum: Bugs
Topic: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG
Replies: 6
Views: 10597

Re: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG

OK, so this is a breaking API change, right? What would be the correct course of action, now? Does pecl-imagick need to be adapted to include the new colorspace? Or is that simply a wrapper that exposes everything that is in the C library to PHP? And then Neos CMS needs to learn that COLORSPACE ...
by pmhausen
2018-02-19T08:52:33-07:00
Forum: Bugs
Topic: ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG
Replies: 6
Views: 10597

ImageMagick from 6.9.9-x on returns wrong colorspace information for grayscale JPEG

Hi all, I stumbled into an odd problem with a CMS written in PHP that uses pecl-imagick to scale images. After updating ImageMagick from 6.9.8-9 to 6.9.9-28 I get bogus colorspace values for a particular set of images. I've come up with some PHP test code: $imagick = new \Imagick(__DIR__.'/test.jpg ...