Gallery image size is not respected

Cwicly Plugin version: 1.2.9.4.4

Hi,

On frontend, gallery image files are loaded according to screen width even if an intermediate size has been selected because all srcset are included, resulting in huge bandwith for large screen.

Only srcset BELOW selected size should be included here.

image

NOTE: Related to Image size is not respected on frontend because of wrong srcset

I actually think I was wrong and the issue is not full srcset, but rather the combination of width / height attribute values and width / height gallery CSS and full srcset:

image

That’s why I guess setting width and height attributes with selected file size dimensions is better.
You force the file you need and you play with CSS sizes.

(See Image size (if srcset is removed or not) - #5 by yankiara)