[wp-hackers] Functions that Fire during "crunching"

Nathan Rice ncrice at gmail.com
Tue May 12 19:07:49 GMT 2009

Nevermind ... it seems that the wp_generate_attachment_metadata() function
actually calls the image_make_intermediate_size() function which will
created the necessary "medium" and "thumbnail" images.

Looks like if you can figure out the necessary parameters that need to be
passed to these functions, uploading files and registering them in the media
library should be pretty easy.


My Website

My Twitter

On Tue, May 12, 2009 at 2:38 PM, Nathan Rice <ncrice at gmail.com> wrote:

> So, I can see that the media_handle_upload function actually handles
> uploading the file, and creating the post info for the upload, but what I
> don't see are the set of actions that create the "medium" and "thumbnail"
> versions of the image.
> Does anyone have any pointers there?
> My Website
> http://www.nathanrice.net/
> My Twitter
> http://twitter.com/nathanrice
> On Mon, May 11, 2009 at 10:58 PM, Mike Schinkel <
> mikeschinkel at newclarity.net> wrote:
>> "Nathan Rice" <ncrice at gmail.com> wrote:
>> > Any pointers you guys have would be much appreciated.  I'm really
>> >trying to wrap my head around the whole image/file upload system.
>> Yes, having "hooks" that allow us to put files where we want them and/or
>> create the sizes and crops we want would be great. Not sure, maybe they are
>> already there?
>> -Mike Schinkel
>> Custom Wordpress Plugins
>> http://mikeschinkel.com/custom-wordpress-plugins
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list