image srcset includes unavailable image size
-
Many of the images in my post no longer draw, displaying a broken link, due to the srcset of the IMG tag referencing files that are no longer on my site.
I’ve been doing some extensive cleaning up of my website, going to 2017 theme from a custom theme, and removing image thumbnail sizes I don’t need. I’ve used “Regenerate Thumbnails” to give me a clean set of image thumbnails – these are the widths it says it needs to generate:50w,375w,768w,620w, (2000 and 100 from 2017 theme).
All of these thumbnails are present, however, manyOne of the images that is broken – the “A tree on the outskirts of Keld” has the IMG tag that looks like this:
<img src=”http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-620×414.jpg”
alt=”A tree on the outskirts of Keld” width=”620″ height=”414″ class=”size-large wp-image-2841″
srcset=”http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-620×414.jpg 620w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-375×250.jpg 375w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-768×513.jpg 768w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-980×654.jpg 980w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-780×520.jpg 780w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-300×200.jpg 300w,
http://www.williamstewart.me/wordpress/wp-content/uploads/2014/08/01-20140813-L1004852-175×116.jpg 175w”
sizes=”(max-width: 620px) 100vw, 620px”>
The srcseet for the tag contains references to thumbnails, to image files, that no longer exist: 980w,780w,300w,175w
– “Regenerate Thumbnails” does not see these sizes
– I do not have any customised code in the 2017 theme that generate these sizes
– The General/Media settings contain 50w,375,620w
– The “Add Media” in the Library, has options for Thumb: 50w, Med: 375w, Large: 525w – if I chose the Large option it uses the 620w fileSo, I can’t find anywhere on my site now that would generate these additional sizes (some of which at least, came from the old theme).
I’m hoping someone can help as this is a problem throughout the site now, and I really want to pursue having smaller numbers of image thumbnails
Thanks
William
The page I need help with: [log in to see the link]
The topic ‘image srcset includes unavailable image size’ is closed to new replies.