• On uploading an image to WordPress using Astra theme + Spectra, it generates the following image sizes,

    1. img-150×150.jpg
    2. img-300×135.jpg
    3. img-768×345.jpg
    4. img-800×360.jpg
    5. img-1200×675.jpg
    6. img-1536×691.jpg
    7. img-2048×921.jpg
    8. img.jpg

    But when I use this image in a post using the image+ block. i.e. the one that says, “Add image with multiple customizations”

    and inspect the srcset attribute, I only see two width specifications, 780w and 360w. Also, they both point to the same image, img.jpg

    srcset="img.jpg ,img.jpg 780w, img.jpg 360w"
    sizes="(max-width: 480px) 150px"

    Irrespective of screen dimensions, it always loads img.jpg. Why is this? Shouldn’t srcset show the other images and load the appropriate ones based on screen dimensions?

    Surprisingly, this works fine when using just the image block (one that reads, “Insert an image to make a visual statement”).

Viewing 1 replies (of 1 total)
  • Hi @somerandomus3rnam3,

    I am unsure if I have understood the exact concern. Can you please provide a screenshot or a screencast demonstrating this? This will help us get a better understanding of the situation and assist you with a precise solution.

    Kind regards,
    Aradhy ??

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.