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
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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.