Title: Gravity Forms Intergration
Last modified: March 22, 2023

---

# Gravity Forms Intergration

 *  Resolved [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/)
 * Hi,
 * I need to compress the images that are sent through Gravity forms file uploader.
   In the Smush plugin I have turned on automatic compression, original images and
   turned on the Gravity forms integration under integrations but after a couple
   of tests uploading a 4mb image through a form it doesn’t compress the image at
   all and gets delivered the same file size.
 * Am I missing a setting somewhere? I cant find any info on the on the web except
   to enable the gravity forms integration.
 * Any help would be much appreciated.
 * Thanks

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16584081)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/)
 * I hope you’re well today!
 * When an image is uploaded to the site, WordPress automatically creates additional
   copies of those images in different (registered) sizes.
 * By default Smush only compresses those additional images but doesn’t compress
   originals. On the “Smush -> Bulk Smush” page you can enable “Compress original
   images” option to make Smush also process originally uploaded images.
 * Could you check if you have this enabled already, please?
 * Kind regards,
    Adam
 *  Thread Starter [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16584273)
 * Hi Adam,
 * Thanks for the feedback, Yes, As I mentioned in my post I have ‘Compress Original
   Images’ set to ON as well as ‘Automatically Compress my images on upload’ plus
   the Gravity Form integration is set to ON as well.
 * When I upload a image into a gravity form and send it form I receive the same
   size image, nothing seems to be compressed in anyway.
 * Ideas?
 * Thanks
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16595984)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/)
 * Thank you for the information.
 * Could you just confirm if you are using the latest plugin version Gravity Form
   2.7.3?
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16596163)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/)
 * I hope you are doing well.
 * I made some tests in the plugin:
 * – Downloaded an image, uploaded to Media Library and Smushed, confirmed it went
   from 4MB to ~3.21MB
    – Uploaded the same image using Form and confirmed the same
   3.12MB is there: [https://monosnap.com/file/jNW3kMoSHEnkn6zowgcxbeUvCBuuqW](https://monosnap.com/file/jNW3kMoSHEnkn6zowgcxbeUvCBuuqW)
 * This indicates the integration is working well.
 * Can you confirm when uploading the same images to Media library the size will
   be smaller?
 * Best Regards
    Patrick Freitas
 *  Thread Starter [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16597953)
 * Hi Patrick,
 * Thanks for your help and looking into it.
 * Yes, Im running the latest version of GF 2.7.3.
 * I think maybe we might be thinking of different things, So I have a Gravity form
   that has a “upload your images” section in it, when people uploaded their images
   they get uploaded into a separate folder in the uploads directory ( not the media
   library ). Problem is now or server is maxing out in terms of space and before
   I clean it up, going forward I was hoping it would be possible for any images
   uploaded into the form get compressed smaller to avoid them taking up too much
   space.
 * If I upload a 4mb image into the form and then press send, that same 4mb image
   gets stored on the server and sent to me via email without smush compressing 
   it.
 * Hopefully that makes more sense, ideally if possible it would be great if smush
   could compress that image on upload from a form. At the moment it isn’t.
 * If you would like to see the test form you can view it on gocamp.co.za/test-page
 * Thanks
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16604437)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/)
 * Does your form has some additional setup to not include those images in media
   library? If that is the case, you will need to use Directory Smush to compress
   images from additional folder which is not the default one from WP core -> /uploads/
   year/month.
 * [https://wpmudev.com/docs/wpmu-dev-plugins/smush/#directory-smush](https://wpmudev.com/docs/wpmu-dev-plugins/smush/#directory-smush)
 * Kind Regards,
   Kris
 *  Thread Starter [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16605817)
 * Hi Kris,
 * Thanks for your reply.
 * By default Gravity Forms creates it sown directory in the uploads folder and 
   the uploads don’t automatically go into the standard WP media library.
 * I have done the Directory Smush on the Gravity Forms folder in the uploads folder
   but this just Smushes the existing files in there, Im looking for a way for the
   images to be smushed/compressed when they are uploaded in a form and sent so 
   they are compressed when they get emailed.
 * Thanks
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16616277)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/),
 * Unfortunately, it seems that the custom functions used by Gravity Forms to upload
   image files prevent Smush from compressing them during upload. We have contacted
   our developers to see if there is a possible workaround for this, and we will
   update you as soon as we have more information.
 * Kind Regards,
    Nebu John
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16672386)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/),
 * Could you please try this snippet and check whether it helps?
 * [https://gist.github.com/wpmudev-sls/d6773c2daee390783ee8a93b3dbb1457](https://gist.github.com/wpmudev-sls/d6773c2daee390783ee8a93b3dbb1457)
 * You can apply the above snippet as a mu-plugins. Please check this link on how
   to implement the above code as a mu-plugins:
   [https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * Kind Regards,
 * Nithin
 *  Thread Starter [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16680562)
 * Hi Nithin,
 * Thanks so much for checking this out, So I installed the mu-plugin and ran a 
   test. Image file uploaded into the gravity form was 4.9mb and image size that
   was sent to me ( and stored on the server) was 5.2mb… it someone went the opposite
   way.
 * It didn’t really much make much difference but thanks for checking it out, if
   you feel like digging further just let me know if there is anything you need 
   from my side.
 * Regards
 * Simon
 *  Plugin Support [Saurabh – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16687360)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/)
 * Just would like to ask for some additional information before sharing the result
   with our development team. Would it be possible to perform a few additional tests
   with a couple of different images? We’ll just need to verify the result is not
   an isolated case related to a specific image.
 * Once you have the results, we’d appreciate if you can share them with us in this
   thread.
 * Kind regards
 * Luis
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16743868)
 * Hi [@simoncox](https://wordpress.org/support/users/simoncox/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open the thread if you need further assistance.
 * Best Regards
   Nithin

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Gravity Forms Intergration’ is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

## Tags

 * [smush](https://wordpress.org/support/topic-tag/smush/)

 * 12 replies
 * 7 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/gravity-forms-intergration/#post-16743868)
 * Status: resolved