Skip to content

Use maxresdefault instead of hqdefault for YouTube embeds #535

Open

Description

@benfeather

When requesting the OEmbed data for a YouTube video, this package uses the "hqdefault.jpg" image, which is small and has fixed black bars at the top and bottom.

Would you be able to use the maxresdefault.jpg instead?

Here is the quality difference between the two:

hqdefault.jpg
hqdefault

maxresdefault.jpg
maxresdefault

Activity

  1. oscarotero commented on Apr 24, 2024

    @oscarotero
    Collaborator

    good idea. do you want to work on a pull request?

  2. benfeather commented on Apr 28, 2024

    @benfeather
    Author

    My PHP isn't the best, but I can give it a go.

  3. Vitorinox commented on Nov 21, 2026

    @Vitorinox
    Collaborator

    This is addressed in PR #593: for YouTube, Embed now uses the maxresdefault thumbnail from og:image when that image belongs to the same video. It is planned for 4.7.0. If you want to try it before the release:

    composer require embed/embed:dev-feat/providers-4.7.0
    

    Feedback is very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions