- Issue created by @shakilahmad
In a recent scenario, I encountered a situation where I needed to display the YouTube video thumbnail for various viewports. To address this, I created a responsive image style. However, I found that there was no option to apply this responsive image style to the YouTube thumbnail.
In my twig, I passed the thumbnail URI to the drupal_image() twig tweak function but the return was NULL
{% set yt_thumbnail = drupal_image(video_hero_thumbnail_url, 'responsive_horizontal_card_image', responsive = true) %}
I would like to propose the addition of a functionality that allows us to choose any responsive image style for the YouTube thumbnail. This enhancement would provide more flexibility and ensure a consistent visual experience across different devices.
Active
2.0
Video Embed Field (base module)