Site logo

Archived topic

picture sizes

8 replies · Started by Melissa on July 11, 2019

Viewing posts 1–9 of 9

I'm having a really hard time figuring out how my site is determining which photo sizes to use.

For example, on this page -- https://theslowroad.org/back-to-the-middle-ages/ -- on a full-width screen,
the first image (town on a hill) should be using the "wide" 1300px retina version, the second image (castle) should be using the "full-column" 806 px retina version, the third picture (flower on building) should be using the "medium" 393x590px retina version.

Instead, on my 1486px Macbook screen, the first image seems to use the 856 px retina version, the second image (castle) uses the 1300 px non-retina version, the third picture (flower on building) is using the 650x975 px non-retina version.

The retina 2x plugins say that all the sizes exist.

I'm so confused that I feel like I'm losing my mind. Please help!

I'm not trying to do anything unusual. I just use Gutenberg image block to say "medium" or "full column" and expect it to use the closest available file size (preferably retina).

I have no idea why srcset isn't doing that? Can you see the problem on the page?

I'm not noticing any visible issues, but I'm on a smaller MacBook at the moment.

Your images have a lot of srcset values (including retina), so it should be up to your browser to use the appropriate image size depending on the screen - all of the images exist and are listed.

Is the order of the items in the srcset important? I'm still trying to figure out why it isn't using retina versions despite them being available.

Looking at the clock image on this page
https://theslowroad.org/weaving-our-way-through-lyon/

the following screenshot shows the html and the srcset and the file being used

https://theslowroad.org/wp-content/uploads/2019/07/Screen-Shot-2019-07-12-at-10.50.57-PM.png

It says:
392x590 pixels (intrinsic 650 x 975 pixels)
currentSrc: ... 650x975.jpg

My initial file was 1733x2600. Wordpress made the image size "medium" 590x590 not cropped, and Retina2x made the equivalent size. I used the size "medium" in my Gutenberg image block. So where is it getting 650x975? Why isn't it using 393x590@2x ?

Sorry for all the confusion. I hope you can help.

Do you have any idea of anything in GeneratePress that could be making the "intrinsic" image size listed by Chrome much smaller than the uploaded file?

When you're inserting the image, are you choosing the size? For example, maybe it's set to Medium?

This archived topic is closed to new replies.