rcrowe / TwigBridge

Give the power of Twig to Laravel
MIT License
894 stars 168 forks source link

Resize Filter? #383

Closed creazy231 closed 3 years ago

creazy231 commented 4 years ago

I used the | resize(x, y) filter within an old project some month ago. Now I started a new project using laravel and twigbrige because I like the way twig works, but I tried to use the resize filter without success.

Is there any way to get the resize filter work using twigbridge?

barryvdh commented 4 years ago

Do you have a link to the filter? Not sure what it does?

creazy231 commented 4 years ago

Timber for WordPress had such a function

barryvdh commented 4 years ago

Sorry not familiar with that. I would assume it would also need something like Glide to actually resize the images, or generate thumbnails

creazy231 commented 4 years ago

Ok, realizing that this is an feature that does not come out of the box with twig. Are there any plans adding this feature to TwigBridge or can we do this on our own? I think I have to create my own filter, right?