WordPress.org

Support

Support » Plugins and Hacks » Image_resize and add_filter

Image_resize and add_filter

Viewing 3 replies - 1 through 3 (of 3 total)
  • To my knowledge, there are STILL no appropriate hooks into the image_resize( … ) function, as of WP 3.0, so you’ll have to continue to apply my hack manually.

    Your hack seams to work as expected, but it fails to take into account added image sizes, either via your theme or plugins which may add extra image sizes. As of 3.0 there is a function to get an array of all available image sizes: get_intermediate_image_sizes(). Returns a filtered array of image size strings.
    I have a site set up which creates 8 different image sizes plus the original upload.
    I do wonder why you would need a different suffix.
    Perhaps you should have a look at the superslider-image plugin (add image to post via shortcode), or the superslider-media-pop plugin (adds numerous image control functions to the admin screens).

    When I originally wrote the hack (as seen in the link above) it was intended only as an example of how someone could accomplish this functionality, not a best-case solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image_resize and add_filter’ is closed to new replies.
Skip to toolbar