6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14833] Error when communicating with the server with PDF Attachements
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.._.. ..__ .__. [__] | |\ |[__)| | | |_|_| \|| \|__\
Comment
> Just experienced the same problem on an up to date install of CentOS > 7 that uses upstream released packages. > > I would suggest that a more elegant solution would be.... > > --- Pdf-released.php 2018-07-05 01:31:00.000000000 -0500 > +++ Pdf-patched.php 2018-08-06 10:32:10.828102717 -0500 > @@ -139,10 +139,18 @@ > if ($img instanceof Horde_Image_Imagick) { > /* Get rid of PDF transparency. */ > $img->imagick->setImageBackgroundColor('white'); > - > $img->imagick->setImageAlphaChannel(imagick::ALPHACHANNEL_REMOVE); > - return > $GLOBALS['injector']->getInstance('Horde_Core_Factory_Image')->create(array( > - 'data' => > $img->imagick->mergeImageLayers(imagick::LAYERMETHOD_FLATTEN)->getImageBlob() > - )); > + if (version_compare ( phpversion( 'imagick' ), > '3.3.0', '<' ) ) { > + # Maintain compatibility with packaged OSes > + return > $GLOBALS['injector']->getInstance('Horde_Core_Factory_Image')->create(array( > + 'data' => > $img->imagick->flattenImages()->getImageBlob() > + )); > + } else { > + # Support Newer iMagick installations > + > $img->imagick->setImageAlphaChannel(imagick::ALPHACHANNEL_REMOVE); > + return > $GLOBALS['injector']->getInstance('Horde_Core_Factory_Image')->create(array( > + 'data' => > $img->imagick->mergeImageLayers(imagick::LAYERMETHOD_FLATTEN)->getImageBlob() > + )); > + } > } > > return $img->getImageAtIndex(0); > > > >> >>> is it possible, that the ImageMagick version is too old on Centos 7.5 ? >>> >>> [root@dmz-sv-webmail ~]# rpm -q ImageMagick >>> ImageMagick-6.7.8.9-15.el7_2.x86_64 >>> [root@dmz-sv-webmail ~]# >> >> >> Yep! This was it. I installed now >> ImageMagick6-6.9.10.6-1.el7.remi.x86_64 from remi's Repo and rebuilt >> the imagick pecl extension, and voila! now it works. >> >> >> So problem is solved now for me >> >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers