[Tickets #14833] Re: Error when communicating with the server with PDF Attachements

[email protected]
Newsgroups gmane.comp.horde.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14833
------------------------------------------------------------------------------
  Ticket             | 14833
  Updated By         | [email protected]
  Summary            | Error when communicating with the server with PDF
                     | Attachements
  Queue              | IMP
  Version            | 6.2.22
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


[email protected] (2018-07-11 13:48) wrote:

Your version of imagick is indeed too old.  The reason for the changes  
is that Imagick::flattenImages() which was used previously in the  
generation of the PDF thumbnails was removed in 3.3.0:

https://pecl.php.net/package-info.php?package=imagick&version=3.3.0

The replacement  for this is

$im->setImageBackgroundColor('white');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_REMOVE);
$im->mergeImageLayers(Imagick::LAYERMETHOD_FLATTEN);

so this pulls in the requirement for this constant, which was added in  
3.2.0b2:

https://pecl.php.net/package-info.php?package=imagick&version=3.2.0b2

Note that 3.3.0 was released more than two years ago and 3.2.0b2 has  
been available for almost five years already, released mere weeks  
after 3.1.2 was released.



-- 
bugs mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.