Skip to content

Commit 39b8e06

Browse files
authored
Update IMagickLuminanceSource.php
Correct the pixel type for the last version of imagick
1 parent 96d5f80 commit 39b8e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IMagickLuminanceSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function _IMagickLuminanceSource($image, $width, $height)
6060

6161
$image->setImageColorspace (\Imagick::COLORSPACE_GRAY);
6262
// $image->newPseudoImage(0, 0, "magick:rose");
63-
$pixels = $image->exportImagePixels(1, 1, $width, $height, "RGB", \Imagick::COLORSPACE_RGB);
63+
$pixels = $image->exportImagePixels(1, 1, $width, $height, "RGB", \Imagick::PIXEL_CHAR);
6464

6565
$array = array();
6666
$rgb = array();

0 commit comments

Comments
 (0)