I want to get youtube highest thumbnail \"maxresdefault.jpg\"
Like this one
http://i.ytimg.com/vi/Cj6ho1-G6tw/maxresdefault.jpg
I\'m using this simple ph
The reason is because the resolution on Making the Most of Maps is not at least 720p.
Looking at the api for this specific video, you can see that there is no maxresdefault
.
Only videos that are 720p or higher in resolution have maxresdefault
. This is not listed in the API in videos that are higher. So in order to get the highest resolution, you should also check if the maxresdefault
works as well.
Your best bet for the highest quality thumbnail is to use the API and get the image with the largest yt:name
attribute.
The order is:
default
mqdefault
hqdefault
sddefault
Example code of this in action:
';
This works both on $youtub_id = "Cj6ho1-G6tw";
and $youtub_id = "VGazSZUYyf4";
.