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

WordPress Trac noreply at wordpress.org
Wed Feb 19 00:58:19 UTC 2020


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

 * milestone:  5.4 => 5.5


Comment:

 Looking at 48853.1.diff again, it may be better to deprecate `pdf_setup()`
 function in favor of `pdf_load_source()`. The latter does the "setup" and
 then tries to load the source.

 In 48853.2.diff: deprecate `pdf_setup()` and introduce
 `pdf_load_source()`. The latter does the "setup" and then tries to load
 the source. If it fails, it tries to run `gs` without the `use-cropbox`
 option. It also uses a nested try/catch as it tests for several possible
 failures.

 I still couldn't reproduce this, having troubles installing (compatible)
 ImageMagic and GNU Ghostscript 8.7. Also seems it's too late to add this
 in 5.4, moving to the next milestone.

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


More information about the wp-trac mailing list