Skip to content

alexmic/great-again

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

great-again

A late-night spin on Donald Trump's presidential campaign. Go to greataga.in to see it in action.

How it works

  1. On /<term>, we use the Yahoo! BOSS Search API to find matching images.
  2. Once we have a candidate set, we filter on size and type and start downloading the images asynchronously in batches of 3 until the first image that can be read successfully.
  3. We then feed the image to the draw module which calculates the appropriate font size based on the term length and creates the image.
  4. The image is then uploaded on S3.
  5. For obvious performance reasons, we cache the result per term.

Example

greataga.in/java

Cats

About

A late-night spin on Donald Trump's presidential campaign.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published