Okay so, I’ve gone back to this blog post at least ten times in the last month to copy the very mysterious, yet deliciously helpful, code that allows me to easily generate YouTube video thumbnails for use in our blogs. In the author’s own words…
“This could be useful to display thumbnails with links in your sidebar, or to replace the YouTube embed code with a video within your RSS feed. Attempting to write your own YouTube thumbnail generator could be quite a task.
The good news is that you don’t actually have to generate a thumbnail, YouTube actually has several waiting for you:
Here’s the video – notice the video id?
- http://www.youtube.com/watch?SgGVitTU9F8
Here are the images in a couple sizes and frames, note the video id is embedded in the URL:
- http://img.youtube.com/vi/SgGVitTU9F8/0.jpg
- http://img.youtube.com/vi/SgGVitTU9F8/1.jpg
- http://img.youtube.com/vi/SgGVitTU9F8/2.jpg
Our friend and client, Douglas Karr, first showed us how it was done. You can read the whole post on the Marketing Tech Blog, and you should definitely subscribe to the blog for lots more helpful tips like this one.
