grav-plugin-resize-images icon indicating copy to clipboard operation
grav-plugin-resize-images copied to clipboard

How to get the biggest image?

Open ntopulos opened this issue 5 years ago • 0 comments

Using the plugin, all images uploaded on a page have multiple versions name.jpg, [email protected], [email protected]....

Is there a simple way to display the biggest one with TWIG? The problem being that the number of versions depends on the original image size.

I tried this without success:

{{ image.sizes('100vw').url }}

Trying the get an absolute size also does not work:

{{ image.derivatives(2000).url }}

ntopulos avatar May 07 '19 12:05 ntopulos