Closed mhuegel closed 5 years ago
I would probably use the thumb method on the image object directly:
$someImage->thumb(...);
You can also expose any PHP function to the Twig environment: https://github.com/fvsch/kirby-twig/blob/main/doc/functions.md
This works for me:
but how do i call the thumb-method with multiple options?
Something like this?
{{ image.thumb({
width: 300,
height: 200,
quality: 80
}).html() }}
Awesome, thank you!
Whats your approach when it comes to resizing images? Kirbys resize and thumb functions don't seem to work?