Skip to content

ob6160/pretty-graun-thumbnails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pretty-grauniad-thumbnails

Created for the Guardian Fastly Hack day. I aimed to improve the rendering of our social media post sharing thumbnail images. Namely, I wanted to add some details about the article content to the image itself to make it clearer to users what they are clicking on.

Project link


The project runs on Fastly’s Compute@Edge

Useful commands:

  • fastly compute serve --skip-verification --watch
  • fastly compute deploy

It also uses the excellent image and imageproc libraries for rust to do the image manipulation.

The content is served through the Guardians' CAPI (content api) infra.

Here's what they look like now:

the current guardian thumbnail format, with the logo on the bottom right

And the result of the hack:

Top alignment

the output from this program, adding a newer version of the logo as well as the article title and short description

Bottom alignment

the output from this program, adding a newer version of the logo as well as the article title and short description

Dark mode

the output from this program, adding a newer version of the logo as well as the article title and short description

Releases

No releases published

Packages

No packages published