[wp-trac] [WordPress Trac] #15311: dynamic image resize (on the fly) using already available functions
WordPress Trac
noreply at wordpress.org
Mon Nov 5 11:49:54 UTC 2012
#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 |
------------------------------------+-----------------------------
Comment (by MatthewRuddy):
Hey all, just thought I'd throw my own solution into the mix. I've
developed a function that replicates Timthumb resizing exactly for
seamless integration. I found the OP vt_resize function wouldn't crop the
image in the same way to the exact dimensions specified.
I've been developing a slideshow plugin, so I needed images to be resized
and cropped to exactly the dimensions I specified (just like Timthumb). I
actually took the crop positioning calculations straight from Timthumb
itself. You can have a look at the Github page below I've created for it.
http://matthewruddy.github.com/Wordpress-Timthumb-alternative
It has an alternative functions for Wordpress 3.5, which has added handy
new image manipulation API. That said, I did find the new API to be
slightly slower than the function provided for older Wordpress versions,
but that's probably because there is a lot more going on (checks for GD or
Imagemagik, etc).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15311#comment:72>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list