[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management
WordPress Trac
noreply at wordpress.org
Fri Feb 19 00:15:52 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 azaozz):
Been thinking about this. To work it requires ImageMagick and Postscript
on the server. There are some settings that we can pass through imagick to
ps to try to get better quality previews.
There is a difference between setting album art for audio, poster image
for video and preview image for PDF.
- Album art can be added separately, it should be a separate image
attachment.
- Video posters are usually generated automatically but would be good to
support adding them manually, to match audio/album art.
- PDF previews are always generated automatically. There is no need for
separate image attachments.
Thinking that it's better to set another meta "key" for preview images in
the attachment meta, perhaps `preview_image`. Then keep the image details
in there. That way we won't mix non-image mime types with image meta.
The structure of the `preview_image` array can also be better than the
existing image meta. For example we can store the sub-dirs separately and
have all sizes in one array, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31050#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list