Title: Does not work with srcset
Last modified: February 4, 2022

---

# Does not work with srcset

 *  [nedmartin.org](https://wordpress.org/support/users/nedmartinorg/)
 * (@nedmartinorg)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-with-srcset/)
 * The image code generated by WordPress contains a srcset, listing all the different
   sizes of images available for that image so the browser can pick the best size.
 * Unfortunately these other sizes are not rewritten by this plugin, so do not exist.
   When the browser chooses one, the file does not exist, and no image is shown.
 * Here is an example of the code output by WordPress (using image size “medium”
   in this particular case)
 * As you can see, the actual src attribute has been rewritten to point at the cache,
   but none of the srcset images have.
 * `<img width="600" height="600" src="//localhost:3000/wp-content/cache/thumbnails/./
   image-600x600.png" class="attachment-medium size-medium" alt="" loading="lazy"
   srcset="//localhost:3000/wp-content/uploads/image-600x600.png 600w, //localhost:
   3000/wp-content/uploads/image-150x150.png 150w, //localhost:3000/wp-content/uploads/
   image-100x100.png 100w, //localhost:3000/wp-content/uploads/image-300x300.png
   300w, //localhost:3000/wp-content/uploads/image-64x64.png 64w, //localhost:3000/
   wp-content/uploads/image-768x768.png 768w, //localhost:3000/wp-content/uploads/
   image-640x640.png 640w, //localhost:3000/wp-content/uploads/image-400x400.png
   400w, //localhost:3000/wp-content/uploads/image-800x800.png 800w, //localhost:
   3000/wp-content/uploads/image-560x560.png 560w, //localhost:3000/wp-content/uploads/
   image-367x367.png 367w, //localhost:3000/wp-content/uploads/image-85x85.png 85w,//
   localhost:3000/wp-content/uploads/image-32x32.png 32w, //localhost:3000/wp-content/
   uploads/image.png 1000w" sizes="(max-width: 600px) 100vw, 600px">`

The topic ‘Does not work with srcset’ is closed to new replies.

 * ![](https://ps.w.org/thumbnails/assets/icon-256x256.png?rev=3452729)
 * [Thumbnails and Featured Images](https://wordpress.org/plugins/thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thumbnails/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [nedmartin.org](https://wordpress.org/support/users/nedmartinorg/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-work-with-srcset/)
 * Status: not resolved