[wp-trac] [WordPress Trac] #38522: HTTP Errors on Upload with Certain PDFs

WordPress Trac noreply at wordpress.org
Fri Oct 28 19:51:06 UTC 2016


#38522: HTTP Errors on Upload with Certain PDFs
--------------------------+---------------------------
 Reporter:  mikeschroder  |       Owner:  mikeschroder
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------------

Comment (by dglingren):

 I have done some preliminary testing with the 4.7 Beta 1 release. PDF
 thumbnail generation generally works great (congratulations!). However,
 with very large PDF documents I found two issues:

 1. WP 4.7 thumbnail generation for a 32,953KB document takes 4 minutes 37
 seconds (4:37) on my system. With WordPress 4.6.1, uploading takes 6.35
 seconds, and using the thumbnail generator in Media Library Assistant
 (MLA) takes just 5.37 seconds (0:06) . I suspect the difference is because
 the generation technique in WP 4.7 processes the entire PDF document while
 MLA uses an explicit GhostScript invocation to process just the first page
 (I haven't looked at the code yet).

 2. I used the drag-and-drop uploader (in the Media/Add New screen) to
 process four large PDF documents (about 23MB each) with similar names. The
 WP 4.7 process sometimes failed with an HTTP Error, but it also generated
 multiple copies of some files and thumbnail images for each copy.

 Let me know what else I can do to help investigate and resolve these
 issues. Thanks for all your hard work on this new feature!

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


More information about the wp-trac mailing list