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

Limit resize size by size of original #2

Closed
shifr opened this issue Oct 17, 2016 · 0 comments
Closed

Limit resize size by size of original #2

shifr opened this issue Oct 17, 2016 · 0 comments
Assignees
Labels

Comments

@shifr
Copy link
Owner

shifr commented Oct 17, 2016

It's possible to send request with size bigger than original. Much more bigger:
ll 133/fc3cb123-cf43-45d3-822f-472aa84f5389_546e81b73d4fbe9472b041afd9723227_1x1_41400x57600.jpeg -h
-rw-r--r-- 1 www www 46M Oct 17 13:27 fc3cb123-cf43-45d3-822f-472aa84f5389_546e81b73d4fbe9472b041afd9723227_1x1_41400x57600.jpeg

You can easily use this to overflow cache partition.
Wise solution will be - return original size if requested sizemore than original

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

No branches or pull requests

1 participant