Skip to content

Commit

Permalink
[jan] Fix converting to grayscale with imagick driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 1, 2014
1 parent 23a57f5 commit 869d2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Image/lib/Horde/Image/Imagick.php
Expand Up @@ -275,7 +275,7 @@ public function mirror()
public function grayscale()
{
try {
$this->_imagick->setImageColorSpace(Imagick::COLORSPACE_GRAY);
$this->_imagick->setImageType(Imagick::IMGTYPE_GRAYSCALE);
} catch (ImageException $e) {
throw new Horde_Image_Exception($e);
}
Expand Down
2 changes: 2 additions & 0 deletions framework/Image/package.xml
Expand Up @@ -35,6 +35,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [jan] Fix converting to grayscale with imagick driver.
* [jan] Add optional dependency on imagick PECL extension.
</notes>
<contents>
Expand Down Expand Up @@ -995,6 +996,7 @@ Initial release as a PEAR package
<date>2013-07-13</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [jan] Fix converting to grayscale with imagick driver.
* [jan] Add optional dependency on imagick PECL extension.
</notes>
</release>
Expand Down

0 comments on commit 869d2b9

Please sign in to comment.