I use the Google Images API to automatically generate thumbnails for my blog posts. I want to pick 3 or 4 important keywords from the post title and get a relevant image from Google Images. What’s a good way to do this using PHP?
I use the Google Images API to automatically generate thumbnails for my blog posts.
Share
There’s not really a good way to automatically determine which keywords are “important”. However, you could put in all words with at least a certain length, or the 3 longest words, or the words of at least a certain length that occur the most in the article.