Closed DTesch-Reem closed 5 months ago
Not all YouTube videos have a maxresdefault image, so I'm comfortable with hqdefault being what we attach to embedded assets.
If you have an embedded asset for a YouTube video that does have a maxresdefault image, you could either manually make that change in the JSON file, or you could do something like the following in your templates:
{% set maxResImage = embeddedAsset.image|replace({
hqdefault: 'maxresdefault',
}) %}
Bug Description
For YouTube Assets the fetched image is always "hqdefault" How can I force to fetch the maxres-Image?
Steps to reproduce
Expected behaviour
No response
Embedded Assets version
4.1.0
Craft CMS version
4.8.10