Allow using media thumbnail

Created on 11 January 2022, almost 3 years ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

By default, oEmbed lazyload will load the video thumbnail directly from Youtube's servers.

This is perfectly fine, but in some cases the developer might prefer to use Drupal's own media-managed thumbnail because of the following reasons:

- The need to control the aspect ratio of the thumbnail
- The need to control the size of the thumbnail: i've found that the images provided by //i.ytimg.com/ aren't big enough for some designs, while using Drupal's thumbnail you can get yoru desired crop and sizing.
- Performance reasons, i.e minimizing the load of third-party resources
- Simply because it works better: i've found that some youtube videos don't return a thumbnail using //i.ytimg.com/, while Drupal is keeping a perfect thumbnail on its files.

Proposed resolution

Allos, via field formatter interface, to use the Media thumbnail and to select an image style as an alternative to the default, external resource loading.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain idiaz.roncero Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024