Anyone know a way to use the media image resizing function when you only have the image path? So e.g. {{ image.cropZoom(600,400).quality(100).html() }} would output the image IF grav knows it's an image or in an image/media loop
...But i only have the path not the image - Grav doesn't know its an image because it's coming from an array in the yaml - so this:
gallery2:
user/pages/test/cows.jpg:
name: cows.jpg
type: image/jpeg
size: 66442
path: user/pages/test/cows.jpg
user/pages/test/arthritis.jpg:
name: arthritis.jpg
type: image/jpeg
size: 63333
path: user/pages/test/arthritis.jpg
user/pages/test/cows1.jpg:
name: cows1.jpg
type: image/jpeg
size: 32349
path: user/pages/test/cows1.jpg
So I was trying stuff like:
{{ gallery2.item.cropZoom(600,400).quality(100).html() }}
But nothing is working :(