This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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
You should call thumb function on your image object, not on the path of the image, like
<img src="{{ gallery.photo.thumb(100,auto) }}"/>
1-3 of 3