Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 2.24 KB

README.md

File metadata and controls

36 lines (19 loc) · 2.24 KB

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