[wp-hackers] Inclusion of TimThumb -- anyone game?

Mike Little mike at zed1.com
Thu Mar 5 20:45:31 GMT 2009


2009/3/5 Nathan Rice <ncrice at gmail.com>:
> Doug,
> WordPress already includes an image resizing feature when you upload new
> images (creates a medium and thumbnail size image).  However, I've been a
> little curious as to how plugin/theme developers can use those features
> themselves.
>
> I'd like to formally ask for the hackers' help on this one.  If there is a
> way for a theme/plugin to take advantage of the image upload and resize
> functions, I'd certainly appreciate a point in the right direction.
>

There are the following filters available for plugin users
  image_downsize
  image_make_intermediate_size
  editor_max_image_size
  jpeg_quality

All used in wp-includes/media.php. Take a look at the code to see how
to use them.


Mike
-- 
Mike Little
http://zed1.com/


More information about the wp-hackers mailing list