I\'m interested in getting a preview image of a youtube video for my application I\'m using the url to the previews:
http://img.youtube.com/vi/EqWRZrupLrI/0.jpg
0.jpg
is the full-size 480p thumbnail and there is no bigger thumbnail except for full HD videos (maxresdefault.jpg
).
But why do you expect a bigger thumbnail for such a video ? Your video example has a resolution of 240p, the thumbnail is already much bigger than the video resolution.
Please check the following SO post:
How do I get a YouTube video thumbnail from the YouTube API?
YouTube thumbnail link doesn't work in all cases
It will surely solve your problem. I recommend to query the youtube api to get the thumbnail with max resolution.
Each of every image has 4 category like
https://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
https://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
https://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
https://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
Also you can get more image size by this
-- For default
https://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg
-- For high quality
https://img.youtube.com/vi/<insert-youtube-video-id-here>/hqdefault.jpg
-- For medium quality
https://img.youtube.com/vi/<insert-youtube-video-id-here>/mqdefault.jpg
-- For max size
https://img.youtube.com/vi/<insert-youtube-video-id-here>/maxresdefault.jpg