Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP Storage / AWS-S3 friendly ImageBackend #163

Open
rburhum opened this issue Oct 6, 2020 · 3 comments
Open

GCP Storage / AWS-S3 friendly ImageBackend #163

rburhum opened this issue Oct 6, 2020 · 3 comments

Comments

@rburhum
Copy link

rburhum commented Oct 6, 2020

Is there an example of another implementation of an ImageBackend that does not go through easy_thumbnails?

The problem is that I want to crop the image on upload and generate the thumbnail then. No need to have dynamic images after the size has been chosen in the admin. Right now, the easy_thumbnails backend is querying the GCP bucket several times, on every request, and it is slowing down the request unnecessarily (not to mention that the cost of GETs is also increasing accordingly).

Thanks!

@anrie
Copy link
Member

anrie commented Oct 7, 2020

Hey @rburhum,

for now the EasyThumbnailsBackend is the only available backend.

But sure it would be nice to have a backend, that works better with S3 and other remote storages, so it would be great if someone would work on it.

@rburhum
Copy link
Author

rburhum commented Oct 7, 2020

If I did a backend that would be:

  • more limited than the easythumbnails (e.g. would not allow dynamic thumbnail sizes) and
  • would require a change of the interface to implement

would you consider it?

@MRigal
Copy link
Contributor

MRigal commented Oct 7, 2020

Hi @rburhum ,
We will consider a PR:

  • with less limitations as long as these are documented (we also want to work in the next months on the topic so we might extend what you may start now)
  • with changes to the interface as long as they can be explained and tested (in particular, you may need to change what leads to issue Reduce filesystem work #15 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants