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

WordPress Trac noreply at wordpress.org
Fri Dec 6 07:05:26 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:
-------------------------------------------+---------------------
Changes (by azaozz):

 * keywords:  has-patch reporter-feedback 2nd-opinion => reporter-feedback
     2nd-opinion


Comment:

 Replying to [comment:6 mikeschroder]:
 > Just to double-check it's not my environment -- is that one uploading
 correctly for you?

 Ah, my bad, re-testing with demo_cropped.pdf, the preview image is not
 cropped with the patch. The `setOption( 'pdf:use-cropbox', true );` seem
 to be ignored.

 It works here properly without the patch, ImageMagick 7.0.9, PHP 7.3.

 @joseaneto could you confirm if the generated image is cropped when moving
 that `setOption()` after `readImage()` or that just prevents the error
 you're seeing? If the latter, perhaps there is a way to test for that
 error before setting the option?

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


More information about the wp-trac mailing list