Currently, the YouTube thumbnail is taken straight from the YouTube URL. This means we can't really have a square thumbnail. But a square thumbnail is useful in various parts of Media module and Media Gallery module. Attached patch integrates the thumbnail with D7 image style functionality, and makes the square thumbnail preset use it.

CommentFileSizeAuthor
media_youtube-thumbnail.patch2.88 KBeffulgentsia

Comments

aaron’s picture

Status: Needs review » Needs work

interesting. i hadn't thought of the possibility of using an unmanaged file. but i guess this is a good approach for now.

however, it does not work locally for me: after submitting a new youtube video, i get a thumbnail url like: http://localhost/modules/file/images/file-unknown.png.

aaron’s picture

hmmm... that's happening even after i revert from the patch. must be something else going on; let me try a new install... just a sec.

aaron’s picture

Status: Needs work » Reviewed & tested by the community

nice! this actually does work as advertised. sorry about the false alarm...

effulgentsia’s picture

Status: Reviewed & tested by the community » Fixed

Commited to CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.