WordPress.org

Ready to get started?Download WordPress

Forums

Imsanity
Resizing images automatically from frontend uploads (4 posts)

  1. gavinwebb
    Member
    Posted 1 year ago #

    Hi @verysimple. I'm rebuilding a community site I have and was looking at ways to better manage the images which are a hog on load times. I came across your plugin, bulk converted what I already had (just under 250 images) and boom, an immediate improvement in load time. Thanks very much.

    Now, I was wondering if there was a way for images to be resized automatically when uploaded from the frontend via a gravity form. Although it works wonderfully when images are uploaded to pages and posts, or directly to the media library; images that are uploaded via a form retain their original size, and I therefore have to manually covert (not a huge issue if something is in draft, but a problem if I want to allow some posts or users to publish automatically).

    Thanks for the work you've put into this. All the best. Gavin.

    http://wordpress.org/extend/plugins/imsanity/

  2. Jason
    Member
    Plugin Author

    Posted 1 year ago #

    glad the bulk resize helped!

    For other plugins like gravity to work, basically the plugins have to communicate with each other. To me the best thing is for those other plugins to use the standard WordPress "wp_handle_upload" function. Since imsanity hooks into that functions our plugins would technically work together without knowing anything about each other.

    I've been getting a few comments lately about supporting other form uploaders and I had considered looking into supporting a few "popular" ones. I'm not sure it's the best road to go down, though, because we'd all wind up putting in custom code for our plugins to talk to each other - when WordPress already provides a standard way to do that via the wp_handle_upload function.

    I do plan to look into it more though and see what some of these plugins are doing and, if they're not using wp_handle_upload, perhaps whether they're using some other mechanism and/or perhaps if they have valid reasons for not doing so.

  3. gavinwebb
    Member
    Posted 1 year ago #

    Thanks @verysimple.

    I agree with keeping things WordPress standard as not doing so has caused me real problems in the past.

    I've posted in the Gravity Forms support area, linking to this post.

    Thanks again.

  4. ZeroGravity
    Member
    Posted 1 year ago #

    Gavin,

    Just in case you haven't seen the reply in the Gravity Forms forum here is a link to the solution. It worked perfectly for me.
    http://www.gravityhelp.com/forums/topic/image-resize-options#post-121814

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic