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

WordPress Trac noreply at wordpress.org
Sat Dec 7 21:28:50 UTC 2019


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

 * keywords:  reporter-feedback 2nd-opinion => reporter-feedback 2nd-opinion
     needs-testing


Comment:

 48853.1.diff is a possible way to retry "loading" the PDF with `'pdf:use-
 cropbox'` option set to false. It introduces another method
 `pdf_load_source()` in `WP_Image_Editor_Imagick` so it does not change
 `load()` and `pdf_setup()` significantly (and not introduce nested `try {}
 catch () {}` in `load()`. This, of course can also be written differently
 and adding a new method avoided.

 It is also not tested very well as I'm having problems reproducing the
 particular error here (seem not to be able to downgrade Ghostscript to
 8.7).

 Would be great if this (or a similar patch) can be tested asap so it can
 make it in 5.3.1. If not, this should probably move to the 5.4 milestone.

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


More information about the wp-trac mailing list