Skip to content

Reading WebP images from S3 when AUTO_WEBP = True #1

@achrafSallemi

Description

@achrafSallemi

Currently when we set AUTO_WEBP on Thumbor config, the source image will be saved as WebP format on S3(using the tc_aws plugin).
When trying to LOAD source images from RemoteCV, it returns an error saying that the key doesn't exist which means it's not able to find the image because it's saved as WebP format.

Example :
For example my source image is : http://www.domain.com/source.jpeg
When source image is saved on S3(using tc_aws) when AUTO_WEBP = True, it will be saved under /bukcet-name/www.domain.com/source.jpeg/webp
When we load source image on remotecv_aws under the URL path which is /bukcet-name/www.domain.com/source.jpeg, the image will not be found.

Solution as suggestion
I would suggest adding a new environment variable (like ALLOW_WEBP) which will read WebP type in case the var is set to True.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions