Hi,
I'm looking for a way to get the Url to the largest/original image from a Srcset.
My objective would be to open it in a fullscreen lightbox using the featherlight plugin.
The code I'm using right now in the twig template is :
Shouldn't full size be in a <a href="{FULL SIE GOES HERE}">? srcset should contain only thumbnail sizes. I mean image.url() should return unmodified version URL 🤔 Is your image really big enough?
Resulting to this kind of display on the latest version of Chrome
So, has you can see in the srcset, there is a @3x image available.
Then, is there a way to force image.url to return the higher density image instead of the smallest one?