• This might be a wordpress issue, not perfect images, but I don’t know where else to look…

    So, same page, same image, one on my localhost on windows, other on a linux server.

    – Perfect images on both says that “single_thumbnail” size is there and retina: EXISTS (original image is 1730×974, single_thumbnail is 350×276)

    – on localhost, it’s fine:

    <img width="350" height="276" src="https://xm007.local/wp-content/uploads/2021/10/127-a-1-350x276.jpg" class="attachment-single_thumbnail size-single_thumbnail wp-post-image" alt="" loading="lazy" srcset="https://xm007.local/wp-content/uploads/2021/10/127-a-1-350x276.jpg 350w, https://xm007.local/wp-content/uploads/2021/10/[email protected] 700w" sizes="(max-width: 350px) 100vw, 350px">

    – on server – no srcset, and no retina:

    <img width="350" height="276" src="https://xm007.xhtmlmagic.com/wp-content/uploads/2021/10/127-a-1-350x276.jpg" class="attachment-single_thumbnail size-single_thumbnail wp-post-image" alt="" loading="lazy">

    – both are shown with simple the_post_thumbnail(‘single_thumbnail’);

    – perfect images settings are 100% the same, in fact, whole site is uploaded from localhost and should be identical. Any ideas why is this happening?

  • The topic ‘Localhost and server work differently, no srcset on server’ is closed to new replies.