[wp-trac] [WordPress Trac] #45982: PDF thumbnails have a default black background

WordPress Trac noreply at wordpress.org
Wed Mar 6 13:05:51 UTC 2019


#45982: PDF thumbnails have a default black background
--------------------------+------------------------------
 Reporter:  nebrekab      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.0.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mikenolan):

 Replying to [comment:4 rdiazg]:
 > Hello, I reported the same issue and in my test I fixed it without
 define any colour by default instead of this I merge all layers with
 constant LAYERMETHOD_FLATTEN, could be this a good solution?
 >
 > {{{#!php
 > <?php
 >
 > $ this -> image -> mergeImageLayers ( Imagick :: LAYERMETHOD_FLATTEN );
 >
 > }}}

 We have a legacy thumbnail generation script for uploaded PDFs and this is
 the approach we use on the command line (with a -flatten parameter on
 mogrify). It's been working well for several years but it would be nice to
 be able to switch to native PDF thumbnails rather than fill the media
 library with additional images. Probably makes sense to put it in the
 pdf_setup() function at the bottom of the class.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45982#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list