[wp-trac] [WordPress Trac] #15311: dynamic image resize (on the fly) using already available functions
WordPress Trac
noreply at wordpress.org
Fri Jan 9 06:57:06 UTC 2015
#15311: dynamic image resize (on the fly) using already available functions
------------------------------------+-----------------------------
Reporter: vteixeira | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.1
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+-----------------------------
Comment (by ericlewis):
It's been a while. I'd like to reorient our intent on this ticket -
alleviating issues with missing thumbnails.
Accepting requests for generating any size image on the fly (e.g. 30x300,
87x239) is dangerous, and opens up the server for latency of cropping an
image. So, this doesn't sound like a good solution for WordPress core,
which must work on the lowest common denominator of hosting environments.
A thought that [https://wordpress.slack.com/archives/feature-
respimg/p1419472875000069 nacin shared recently] was creating an image
file for an image size on the fly if it fits the whitelist of registered
image sizes. This balances the expectations of the user (where's my
image?) with the internal APIs of WordPress. If a theme registers an image
size, we can guarantee a file will exist for that image size. I think that
fits the bill for this ticket quite well.
Consider attachment:15311.2.diff a proof of concept for this approach.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15311#comment:98>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list