[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management
WordPress Trac
noreply at wordpress.org
Mon Feb 22 19:41:57 UTC 2016
#31050: Better PDF Upload Management
-------------------------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: feature request | markoheijnen
Priority: normal | Status: assigned
Component: Media | Milestone: 4.5
Severity: normal | Version:
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests needs-testing | Focuses: ui
-------------------------------------------------+-------------------------
Comment (by dglingren):
I added PDF thumbnail generation to my plugin, [Media Library
Assistant](https://wordpress.org/support/plugin/media-library-assistant),
a while back. It supports dynamic generation in the `[mla_gallery]`
shortcode. It also has a bulk action in the Media/Assistant admin submenu
to generate thumbnails and store them as separate Media Library items. You
are welcome to incorporate any of the code or ideas in Core.
I also discovered that adding "Featured Image" support to Media Library
items is easy and works well:
`add_post_type_support( 'attachment', 'thumbnail' );`
Once that's done you can assign an image to any non-image item (PDF,
audio, video, Office documents) and use it in gallery displays, etc. It's
a nice alternative to generating thumbnails.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31050#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list