When crops sizes are missing…random image selected in srcset
-
Recently noticed that we had a site where the wrong image was being displayed. After inspecting the element I realized the srcset was for completely different images. I then went into the admin and realized that the image being used was too small so not all of the image size crops had been created. After creating all the crops everything sorted itself out.
Just wanted to log this as a concern, especially since this is going into core, that perhaps (and I don’t know exactly how) the method used to select the srcset could be tweaked if all of the cropped sizes don’t exist instead of matching something that seems similar in name.
https://www.ads-software.com/plugins/ricg-responsive-images/
- The topic ‘When crops sizes are missing…random image selected in srcset’ is closed to new replies.