Derfder Derfder - 1 year ago 106
PHP Question

Removing black borders 4:3 on youtube thumbnails

E.g. I have a link

for a youtube video thumbnail:

enter image description here

And I would like to remove the black top and bottom border so I get a picture like this:

enter image description here

Could it be done using PHP function javascript/jQuery or maybe youtube api itself?

Answer Source

Use it as a background image, center it and change height.

.youtubePreview {
    background:url('') center no-repeat;