Today I programmed a gallery of Vimeo videos.
The gallery was a list of images. These images were video previews with a link to detail page of the video.
In order to get the images of each video I’ve been searching in Vimeo API
This snippet of PHP can get images from any Vimeo video using its URL.
$id = <Vimeo video ID>; $vimeo = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$id.php")); $small = $vimeo['thumbnail_small']; $medium = $vimeo['thumbnail_medium']; $large = $vimeo['thumbnail_large'];
For example, consider this video:
It will be sufficient to use the snippet and assign to $id the number 15786406. The variables $small, $medium and $large will be small, medium and large vimeo thumbnail images respectively.