[wp-hackers] Image Upload Resizing in WordPress 3.0
Otto
otto at ottodestruct.com
Tue Sep 21 20:11:04 UTC 2010
WP resizes images to three different sizes on upload. The thumbnail,
the medium, and the large sizes. The original is also kept around as
well. All three sizes can be specified on the Settings->Media screen.
Also, themes and plugins can define custom image sizes with the
add_image_size() function, for specialized uses in the theme. This is
often used for featured images or similar type functionality. I use it
sometimes when defining sizes for thumbnail images to use on
next/previous images in galleries.
For a max image size, the theme is able to define it's own
"content_width" size, which will make the image post-insertion
mechanism create appropriate width and height tags to scale down the
closest full sized image to the width of the available display area in
the theme. Themes can do this by simply defining $content_width in the
functions.php file.
Additionally, images of arbitrary size can be created using the image
editing features, after uploading images.
Long story short, there's a whole heck of a lot of image resizing
functionality available to themes and plugins, it's just a matter of
setting it up properly.
-Otto
On Tue, Sep 21, 2010 at 2:46 PM, David Morris <dvmorris at gmail.com> wrote:
> I am trying to track down a piece of functionality that existed in the
> Scissors plugin that automatically resized photos to a specified maximum
> width/height upon uploading them to WP.
>
> I noticed that scissors was decommissioned and integrated into WP 3.0.
> However, the feature that automatically resizes images on upload seems to
> have been lost. Is this true, or am I just unable to find it in the WP
> interface?
>
> If it is not core WP functionality, is there a recommended 3.0 plugin to
> enable this behavior?
>
> Thanks for your help,
>
> --
> Dave Morris
> http://dave.showviz.net/
> http://3dcamphouston.com/
> _______________________________________________
> 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