Title: Optimole breaks srcset/sizes
Last modified: September 28, 2023

---

# Optimole breaks srcset/sizes

 *  Resolved [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/optimole-breaks-srcset-sizes/)
 * I noted an issue on Optimole optimization within the Gutenberg Image block with
   a width and height set on the image block… the image was pixellated, and when
   I set it to exclude the optimization within Optimole settings, the img tag has
   no srcset. Now with Optimole enabled they are like:
 *     ```wp-block-code
       <figure class="wp-block-image size-full"><a href="https://..."><img decoding="async" width="344" height="110" src="https://....jpg" alt="" class="wp-image-64683"></a><figcaption class="wp-element-caption" style="cursor: pointer;">caption</figcaption></figure>
       ```
   
 * With Optimole enabled – even though I have it set to exclude, I am seeing no 
   WordPress-generated srcset/sizes as before:
 *     ```wp-block-code
       <figure class="wp-block-image size-full is-resized"><a href="https://...."><img decoding="async" loading="lazy" src="https://....jpg" alt="" class="wp-image-64680" width="716" height="225" srcset="..." sizes="(max-width: 716px) 100vw, 716px"></a></figure>
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/optimole-breaks-srcset-sizes/#post-17086655)
 * Hi there,
 * You’re correct, and I appreciate your observation. Optimole is designed to automatically
   handle the sizing of images to ensure they are delivered in an optimal format
   and size for every user and device. This is why the “srcset” attribute is disabled,
   as Optimole’s technology autonomously determines and delivers the most appropriate
   image size, rendering the “srcset” attribute unnecessary.
 * We are sorry to hear that you encountered a pixellated image issue. We take this
   feedback seriously and are keen to investigate and resolve the matter. Could 
   you please provide additional details or examples? This will enable our technical
   team to look into the specific issue and make any necessary adjustments to enhance
   your experience with Optimole.
 * Looking forward to your response, and thank you for choosing Optimole.

Viewing 1 replies (of 1 total)

The topic ‘Optimole breaks srcset/sizes’ is closed to new replies.

 * ![](https://ps.w.org/optimole-wp/assets/icon-256x256.gif?rev=3013666)
 * [Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization](https://wordpress.org/plugins/optimole-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optimole-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optimole-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/optimole-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optimole-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optimole-wp/reviews/)

## Tags

 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [sizes](https://wordpress.org/support/topic-tag/sizes/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimole](https://wordpress.org/support/users/optimole/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/optimole-breaks-srcset-sizes/#post-17086655)
 * Status: resolved