We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96d5f80 + 39b8e06 commit 5039e27Copy full SHA for 5039e27
1 file changed
lib/IMagickLuminanceSource.php
@@ -60,7 +60,7 @@ public function _IMagickLuminanceSource($image, $width, $height)
60
61
$image->setImageColorspace (\Imagick::COLORSPACE_GRAY);
62
// $image->newPseudoImage(0, 0, "magick:rose");
63
- $pixels = $image->exportImagePixels(1, 1, $width, $height, "RGB", \Imagick::COLORSPACE_RGB);
+ $pixels = $image->exportImagePixels(1, 1, $width, $height, "RGB", \Imagick::PIXEL_CHAR);
64
65
$array = array();
66
$rgb = array();
0 commit comments