[wp-trac] [WordPress Trac] #48853: Error generating thumbnails of PDF files

WordPress Trac noreply at wordpress.org
Fri Oct 16 10:47:14 UTC 2020


#48853: Error generating thumbnails of PDF files
-------------------------------------------------+-------------------------
 Reporter:  joseaneto                            |       Owner:
                                                 |  mikeschroder
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.6
Component:  Media                                |     Version:  5.3
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  reporter-feedback 2nd-opinion        |     Focuses:
  needs-testing                                  |
-------------------------------------------------+-------------------------
Changes (by mikeschroder):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49174" 49174]:
 {{{
 #!CommitTicketReference repository="" revision="49174"
 Media: Work around `use-cropbox` bug in Ghostscript 8.70

 Wraps `Imagick::readImage()` for PDFs with exception handling, trying
 again without `use-cropbox` if this fails.

 Introduces `WP_Image_Editor_Imagick::pdf_load_source()`.

 Works around a known issue in Ghostscript 8.70 (fixed in 8.71) that
 results in a stack underflow.
 While it only affects this version, it remains a common version found on
 hosts, and prevented some PDF thumbnails from being generated.

 See this Ghostscript bug for more details:
 https://bugs.ghostscript.com/show_bug.cgi?id=690676

 Props azaozz, joseaneto, cranewest, dantahoua, n5hzr, mikeschroder.
 Fixes #48853.
 }}}

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


More information about the wp-trac mailing list