Use thumbnail_url
for thumbnail generation when present
#677
Labels
🧱 stack: api
Related to the Django API
thumbnail_url
for thumbnail generation when present
#677
Problem
Some providers (like SMK) may link to quite large images in their
image_url
. This can cause unacceptably slow response times or even timeouts when generating thumbnails via our thumbnail service.Description
We already have a
thumbnail_url
available on the Image model which we can use.When the
thumbnail_url
is available, we should send this to the thumbnail service instead of theimage_url
. This should be a small change here:(using the serialized field names)
Additional context
#1450 tracks updating the SMK provider script in the Catalog to populate
thumbnail_url
with a link to a smaller image size.Implementation
The text was updated successfully, but these errors were encountered: