dmag
dmag

I learned about this function in online tutorial about OctoberCMS. The person in the tutorial applies the function to an image to resize it and generate a thumbnail:

<img src="{{ user.image.thumb(200, auto) }}">

For some reason this function does not work for me:

<img src="{{ gallery.photo.path.thumb(100,auto) }}">

What am I doing wrong?

rouxx2626417
rouxx2626417

You should call thumb function on your image object, not on the path of the image, like

<img src="{{ gallery.photo.thumb(100,auto) }}"/>
luce336554
luce336554

I need to use thumb function to sho images in grayscale. How can i do ?

1-3 of 3