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

WordPress Trac noreply at wordpress.org
Tue Dec 3 20:20:37 UTC 2019


#48853: Error generating thumbnails of PDF files
--------------------------+------------------------------
 Reporter:  joseaneto     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:  5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> After updating WordPress to 5.3, we saw how the thumbnails of the PDF
> files were not generated.
>
> After many tests in different environments (we have tested with PHP
> versions 7.0, 7.1, 7.2 and 7.3, and in different servers), I found the
> cause, this change:
>
> https://core.trac.wordpress.org/changeset/46238
>
> Calling {{{setOption}}} before {{{readImage}}} produces an internal error
> in Imagick ({{{ImagickException: Failed to read the file}}}) that causes
> it not to be able to read the file, while moving this line to run after
> {{{readImage}}} generates thumbnails without problems.

New description:

 After updating WordPress to 5.3, we saw how the thumbnails of the PDF
 files were not generated.

 After many tests in different environments (we have tested with PHP
 versions 7.0, 7.1, 7.2 and 7.3, and in different servers), I found the
 cause, this change: [46238]

 Calling {{{setOption}}} before {{{readImage}}} produces an internal error
 in Imagick ({{{ImagickException: Failed to read the file}}}) that causes
 it not to be able to read the file, while moving this line to run after
 {{{readImage}}} generates thumbnails without problems.

--

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


More information about the wp-trac mailing list