logo

Grab youtube thumbnail images

Date: 2010-11-15

Youtube has made it very easy comparing to others when it comes to grabbing thumbnail images for you to use as preview images in your custom video application or other. This is how the URL for youtube thumbnails looks like:

Code:

http://img.youtube.com/vi/_YOUTUBE_ID_/_IMAGE_NR_.jpg


Replace _YOUTUBE_ID_ with the ID of the video.
Replace _IMAGE_NR_ with a number 1-3 to get different thumbnails for the video in size 120x90px.

For a big thumbnail use 0.jpg


Take the following video as an example:

Code:

http://www.youtube.com/watch?v=aEqCfFCf_-I


In this example _YOUTUBE_ID_ is equal to _OBlgSz8sSM

So, here's our code for small thumbnail #1 (120x90):

Code:

http://img.youtube.com/vi/aEqCfFCf_-I/1.jpg

image

This is small thumbnail #2 (120x90):

Code:

http://img.youtube.com/vi/aEqCfFCf_-I/2.jpg

image

Sall thumbnail #3 (120x90):

Code:

http://img.youtube.com/vi/aEqCfFCf_-I/3.jpg

image

Big thumbnail (480360):

Code:

http://img.youtube.com/vi/aEqCfFCf_-I/0.jpg

image

ubuntudog.com © 2017 | About | Sitemap | Contact