Support » Plugin: Smush - Lazy Load Images, Optimize & Compress Images » Exclude posts images from optimization

  • Resolved thompsonweb2

    (@thompsonweb2)


    How to exclude images from the posts from the optimization process?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hello @thompsonweb2

    I trust you’re doing well!

    Out of the box, Smush doesn’t have this option as there is no way to tell Smush which image is used on pages and wich on posts.

    As a workaround, you may try changing the upload dir for post images. The Smush automatically optimizing images that are uploaded to the /uploads/ folder. So if a dir folder will be different images could be possible to optimize only when going from Smush > Directory Smush. Please see an example of code here:
    https://wordpress.stackexchange.com/questions/95829/set-custom-upload-path-for-custom-post-type-only

    There is an option as well, that allows Ignoring images. Please go to Media Library and choose which images you wish for Smush to ignore. Please see this screenshot:
    https://take.ms/xo1pM

    The Ignore link is shown only for images that are not optimized yet.

    Have a good day and take care!

    Cheers,
    Nastia

    Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hello @thompsonweb2

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

    Thread Starter thompsonweb2

    (@thompsonweb2)

    Yes, thank you! Problem sorted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.