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 #17

Closed
dbigunyak opened this issue Oct 17, 2016 · 1 comment
Closed

Limit resize size by size of original #17

dbigunyak opened this issue Oct 17, 2016 · 1 comment

Comments

@dbigunyak
Copy link

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

@shifr
Copy link
Owner

shifr commented Oct 17, 2016

Hi Dima,
I've noticed that this is an issue for https://github.com/shifr/vips and duplicated it here shifr/vips#2. I've just fixed it up and now you only need to update this package with go get -u github.com/shifr/vips and get the latest release of imgwizard

@shifr shifr closed this as completed Jan 15, 2017
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

2 participants