[wp-trac] [WordPress Trac] #38594: pdf preview sizes not filterable
WordPress Trac
noreply at wordpress.org
Fri Nov 4 04:17:07 UTC 2016
#38594: pdf preview sizes not filterable
-------------------------------------------------+-------------------------
Reporter: nosilver4u | Owner: joemcgill
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Awaiting
Component: Media | Review
Severity: normal | Version: trunk
Keywords: reporter-feedback has-patch 2nd- | Resolution:
opinion | Focuses:
-------------------------------------------------+-------------------------
Changes (by joemcgill):
* keywords: reporter-feedback needs-patch => reporter-feedback has-patch
2nd-opinion
Comment:
[attachment:38594.diff] demonstrates how we might apply a separate filter,
`fallback_intermediate_image_sizes` (name is debatable) for modifying
which image sizes are generated for PDFs (or other future potential
files). Also note that we would want to check whether any sizes exist
before running the multi-resize process so someone could filter the sizes
to an empty array or `false` to disable PDF thumbnails altogether.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38594#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list