This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hello! I'm using the resize filter in a october v2 installation in my default.htm in my component like this:

<img src="{{ board.image.path|resize(180, 200) }}" alt="{{ board.image.file_name }}" class="board_image">

Unfortunately this doesn't work. What did I wrong?

The outcome markup looks like this and the image isn't found:

<img src="/resize/c7214256a1ed1f82ddf002cd478584fa-1" alt="sebastian_grunt.jpg" class="board_image">
daftspunky
daftspunky

Hello Mathilde,

When you open this link in your browser, you should see some kind of error message or it will redirect you to another location.

Can you confirm this?

Last updated

Mathilde Escher Stiftung
Mathilde Escher Stiftung

Hello daftspunk,

Yes, when I open this link with the right URL in browser the right, resized image is shown. I guess, it has something to do with my app not being on root, but in a subfolder, although the APP_URL is right in the .env.

daftspunky
daftspunky

Ah, you found a bug! We will fix this in v2.1.2

Thanks!

Mathilde Escher Stiftung
Mathilde Escher Stiftung

I updated now and the problem is fixed. Thank you very much!

1-5 of 5

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