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

Add a shortcut that will return the thumbnail or the original file #650

Open
liliserf opened this issue Sep 24, 2020 · 0 comments
Open

Add a shortcut that will return the thumbnail or the original file #650

liliserf opened this issue Sep 24, 2020 · 0 comments

Comments

@liliserf
Copy link

I'm currently using get_thumbnail to upload an image and then immediate fetch it on a subsequent request. As it's well known, generating that thumbnail is a slow process, so it holds up the following request because it has not been generated/cached yet.

Would it be possible to add a shortcut that will check for a thumbnail and return it if it exists in the cache, and if not, that will just return the original file, rather coupling the actions of checking for a thumbnail and returning it in a single call?

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

No branches or pull requests

1 participant