Skip to content

Use thumbnail_url for thumbnail generation when present #675

@stacimc

Description

@stacimc

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 the image_url. This should be a small change here:

image_url = image.thumbnail or image.url

(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

  • 🙋 I would be interested in implementing this feature.

Metadata

Metadata

Assignees

Labels

✨ goal: improvementImprovement to an existing user-facing feature💻 aspect: codeConcerns the software code in the repository🟨 priority: mediumNot blocking but should be addressed soon🧱 stack: apiRelated to the Django API

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions