Resize filter with responsive option #1469
Answered
by
ArnaudLigny
matthieu2607
asked this question in
Q&A
-
Hi @ArnaudLigny, It would be nice if we could with the "resize" filter generate a responsive image (with different sizes) as we have at the markdown level. Good day, Matthieu |
Beta Was this translation helpful? Give feedback.
Answered by
ArnaudLigny
Sep 16, 2022
Replies: 2 comments
-
Hello @matthieu2607, did you try to pipe the For example: {{ asset('image.jpg')|resize(300)|html({alt: 'Image description'}, {responsive: true}) }} Note: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matthieu2607
-
Oh nice, it's great, it's run ;) Thank you @ArnaudLigny |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @matthieu2607, did you try to pipe the
resize
and thehtml
filter?For example:
Note:
{responsive: true}
is not required if the option is enabled globally through assets configuration.