[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management

WordPress Trac noreply at wordpress.org
Tue Jan 27 05:08:15 UTC 2015


#31050: Better PDF Upload Management
------------------------------+---------------------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  feature request   |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Media             |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:  ui, administration
------------------------------+---------------------------------

Comment (by celloexpressions):

 Let's figure out the general strategy here first, then see how that leads
 to a patch.

 We can do the actual image generation when it's done for audio and video
 in `wp_generate_attachment_metadata()`. The generated image would be
 stored as its own sub-attachment, which could in turn have multiple sizes,
 like any other image attachment, that could be used in the admin or on the
 frontend. But we would need to prevent these sub-attachments from showing
 up in the admin anywhere. Would it maybe be better to just generate
 thumbnails at a couple of arbitrary sizes (probably a thumbnail for admin
 and full-sized for possible frontend use) and store their URLs as
 attachment meta instead?

 We should also back-generate images for all existing PDF uploads if
 possible, but I have no idea how to do that. I think we could get to a
 patch here for 4.2 with a team effort, but I know we'll get improvements
 in here eventually.

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


More information about the wp-trac mailing list