Title: Exclude posts images from optimization
Last modified: June 7, 2020

---

# Exclude posts images from optimization

 *  Resolved [thompsonweb2](https://wordpress.org/support/users/thompsonweb2/)
 * (@thompsonweb2)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-posts-images-from-optimization/)
 * How to exclude images from the posts from the optimization process?

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

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-posts-images-from-optimization/#post-12956635)
 * Hello [@thompsonweb2](https://wordpress.org/support/users/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](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](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 [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/exclude-posts-images-from-optimization/#post-12986884)
 * Hello [@thompsonweb2](https://wordpress.org/support/users/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](https://wordpress.org/support/users/thompsonweb2/)
 * (@thompsonweb2)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclude-posts-images-from-optimization/#post-13632894)
 * Yes, thank you! Problem sorted.

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

The topic ‘Exclude posts images from optimization’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [thompsonweb2](https://wordpress.org/support/users/thompsonweb2/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/exclude-posts-images-from-optimization/#post-13632894)
 * Status: resolved