• Hello,
    I’m having an issue with the image srcset functionality built into WordPress. The problem is if my full size image is tiny/40px X 40px (smaller than any of the small, medium, large images set under Settings->Media), WordPress still adds the srcset code for larger versions of the image (250px, 150px, 75px). Because WordPress doesn’t make thumbnails to enlarge an image uploaded, all those paths are not found. For example the filename-150×150 version doesn’t exist.

    I found some browsers (mainly on retina) that try to use that srcset are showing a broken image because it isn’t there.

    Is this a bug or is there a way to work around that? Maybe implement srcset only for images that are large enough to make all size versions of images in Settings->Media.

    For now I just disabled the srcset function.
    Thanks for any help or shedding light on this for me.

    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Image SrcSet functionality bug?’ is closed to new replies.