Derfder Derfder - 4 months ago 28
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?


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

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