Skip Navigation

[Resolved] Loading size of images

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by heinP 2 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2277695

Tell us what you are trying to do?
What is the Toolset functionality to expect, when I have a view that shows images, and I choose "medium" as a image size?

What I see it doing is that it shows the reduced format of the image (great, that's what i expect), but it loads the original full size image. So site speed is slower even when I set image size to a smaller size.

Is there a way to force Toolset to load the reduced image size?

Is there a similar example that we can see?
On the site, inspect page called 'without the map', and look at the second post 'MvR three years'. The full 11M is loaded, as this is the original image size.

What is the link to your site?
hidden link

#2277883

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hein,

Thank you for getting in touch.

What is the Toolset functionality to expect, when I have a view that shows images, and I choose "medium" as a image size?

When an image is uploaded, wordpress will generate 3 different sizes, Large, Medium and Thumbnail. In you case since you're loading the medium image then this size is what should be requested.

Is there a link to the page where I can see this issue at hand so that I can take a further look ?

Thanks,
Shane

#2278319

Yes, as I stated: "On the site, inspect a page called 'without the map', and inspect the second post: 'MvR three years'. The full 11M is loaded, as this is the original image size."

My question is not, should it show 'medium', because it does.
My question is: why does it load the full 11Mb of the original picture, even when it only shows the medium size. This affects speed considerably.

#2278551

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Hein,

Unfortunately I cannot give an explanation for this as we are hooking into the wordpress imaging API to display the image size.

What is happening is that it does load the rescaled image that is expected, however there is an srcset parameter which is also loading the source material. Here is a bit more detail on the issue below.
https://developer.wordpress.org/apis/handbook/responsive-images/#how-it-works

It appears to be apart of the dynamic scaling API for wordpress that will display a different image size based on the device the webpage is being viewed on.

Please let me know if this helps.
Thanks,
Shane

#2279923

Thanks. I will explore further.