Derfder Derfder -5 years ago 285
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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download