• Resolved rtm125

    (@rtm125)


    Hi, first off amazing work and love your plugin.

    I am hoping you guys can help me get this sorted out a bit. So what I need from your plugin is when a person uploads images on a contact form the images are compressed and resized. Currently this is working great and does exactly what I need it to do.

    What I need to make sure the plugin will never do, auto compress or resize anything uploaded to the backend or default upload directory. I use formidable forms, so the upload directory is different then WP uploads. Auto compress or resize any old images.

    Ideally I just need this plugin to ONLY ever resize and compress images uploaded by users that are then attached to an email and as I said before this currently works. But before deploying this to client sites I need to know that the other more common functions won’t mess up the site and really need them to not work.

    I don’t have an issue paying for reasonable customization or support or the premium version to get this accomplished. Please let me know if any options are availible to get this completed or how I can add-in the settings.

    Thank you very much!
    Rob

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @rtm125,

    Glad to hear you like the plugin. Regarding Auto Compression there is already an option to disable in the plugin side under Smush > Dashboard > Bulk Smush > Automatic compression. The same would go for image resizing.

    However, by default, these settings work when images are uploaded via Media Library. I’m afraid, it’ll require custom coding which is outside our support scope to change this behaviour as it entirely depends upon the contact form you use and how it uploads the images.

    Could we know which exact contact form are you using? To have a better idea if there is anything that could be suggested.

    The following hook should help with removing auto compression when implemented. You could bring the hook into your contact forms supports attention to see whether it could be implemented in the plugin side or not:

    remove_action( 'wp_async_wp_generate_attachment_metadata', array( '\Smush\Core\Modules\Smush', 'wp_smush_handle_async' ) );
    

    I hope this helps. Looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter rtm125

    (@rtm125)

    I am using formidable forms. Currently it does auto compress and resize images uploaded by the users on the forms before attaching them to the email out. It works great. What I don’t want to happen is have the plugin resize or compress anything else on the site. So I am more worried about automated functions of the plugin.

    Hi @rtm125,

    Thanks for clarifying your expected result. Currently, the auto compression and resized you have on the contact forms attachments is done by the feature from Smush or is this something done by a setting from the form plugin or different one?

    As mentioned before, trying to set up the plugin to only compress and resize upon upload from just the contact form and not the default behavior of upload via media library will require custom code that is outside our scope.

    One alternative would be to use our Smush Pro version and then use CDN which also resizes images automatically. However, these are not done with images uploaded via media library as it will resize them while being requested on pages since the images would be served over our CDN.

    Best,
    Jonathan S

    Thread Starter rtm125

    (@rtm125)

    it is done by your plugin allready idk why or how but it does successfully grab user uploads and resizes and compresses them before attaching to the email out. Which is exactly what I need it to do. I allready manually compress all the images on the site before uploading them, so I don’t need it to scan and resize images on it’s own. If that makes sense.

    Hi @rtm125,

    When you mention that it already does this automatically, do you currently have the option under Smush > Dashboard > Bulk Smush > Automatic compression enabled?

    Best,
    Jonathan S

    Thread Starter rtm125

    (@rtm125)

    settings

    Yes, I just set the image size to be big enough to not resize anything I care about for now. I do have a question though. Is the 5mb limit you guys talk about with Pro meaning anything under 5mb won’t be resized/compressed?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @rtm125

    Thank you for the screenshot.

    The resize is a native WordPress function:

    Introducing handling of big images in WordPress 5.3

    Smush will filter this value and set your configured one, WordPress will create a new original file usually less than 5MB which will Smush without any issue.

    Best Regards
    Patrick Freitas

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @rtm125,

    Since we haven’t heard from you in 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 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Request/Help Customization’ is closed to new replies.