guardian / facia-scala-client

Low level client for the Facia JSON API
Other
2 stars 1 forks source link

Add functions to inject thumbnail urls into a Facia collection. #175

Closed philmcmahon closed 6 years ago

philmcmahon commented 7 years ago

Currently when replacing an image using the fronts tool, the master version of the image is used as the thumbnail. This is problematic for people in Australia who end up loading a massive file to display a tiny image.

The grid API doesn't provide permanent thumbnail urls, so it doesn't make sense to store them in the fronts datastore, so here I've taken the approach of injecting generated secure URLs into the api response (PR on facia tool to follow).

janua commented 7 years ago

@philmcmahon Why does this code have to live in facia-scala-client if it is unused by the library?