PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Uploading Images from Frontend and Resizing

  1. Gavin Webb
    Member

    Hello all.

    I've been working with a great plugin for the last few days which help reduce the size of my images and thus help speed up my site - fantastic. It is http://wordpress.org/extend/plugins/imsanity/

    Now, it automatically resizes images for ones uploaded to posts and pages, or directly to the media library, but not for images uploaded from the frontend via a gravity form. I have to manually resize these using the bulk resize image function with the Imsanity plugin.

    I raised this with the plugin developer, and he mentioned the wp_handle_upload function which would enable both Gravity Forms and Imsanity to talk to each other. Is this possible?

    Here is the discussion http://wordpress.org/support/topic/plugin-imsanity-resizing-images-automatically-from-frontend-uploads?replies=2

    Thanks. Gavin.

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  2. I've brought this issue to the attention of the developers.

    However, right now, you could use the gform_after_submission hook to run the bulk resize functionality on the uploaded images.

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  3. I would be hesitant to reuse one of WordPress' hooks as that might have negative side-effects. It would work nicely for this scenario, I agree, but it may not work so well for others that don't intend to change the files uploaded from Gravity forms.

    Posted 11 years ago on Monday October 15, 2012 | Permalink
  4. Gavin Webb
    Member

    Hi Alex - could there not be an option added to the File Upload field. I'm no coder so haven't a clue myself :)

    Posted 11 years ago on Thursday November 1, 2012 | Permalink
  5. This feature does seem useful. I will bring it up to the team and see if it is something we can add in the future versions.

    Posted 11 years ago on Friday November 2, 2012 | Permalink
  6. See my post here on how to do this in code: http://www.gravityhelp.com/forums/topic/image-resize-options#post-121814

    Posted 11 years ago on Monday January 14, 2013 | Permalink
  7. Thank you for posting your solution. I will close this topic as well and leave your other reply open.

    Posted 11 years ago on Tuesday January 15, 2013 | Permalink

This topic has been resolved and has been closed to new replies.