PHP webdeveloper and frontend developer




Get the Youtube or Vimeo image still from the video URL with PHP

Category : PHP · by Nov 3rd, 2012

This is a handy function to retrieve the youtube of vimeo still from the video URL. To use the function you just need to pass the $url parameter to the function. The $size parameter is optional and will by default return the large image. If you pass “thumb” as size it will return a small still icon.  

 

SHARE :

(2) comments

Techsoft
3 years ago · Reply

Thats what I need exactly. Thank you so much :)

fanky
2 years ago · Reply

Change line 15 to  return $hash[0][“thumbnail_large”]; if you need larger vimeo.It seems the parameter $size applies only to yt

Leave a Reply

Your email address will not be published. Required fields are marked *


s