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
Properly crop images in avatars API #3087
Conversation
Not sure about this.
Could this be solved by just mentioning that providing the value 0 will keep the original width or height? |
Documenting endpoints better would also be a valid solution, yes. |
I think I would prefer to force the 100x100 resolution for preview images, to make devs aware of this instead of loading images in full resolution by default where most of the time it's far from optimized. |
@eldadfux PR updated to only address documentation changes. It also includes fox when QR code size 0x0 was allowed, resulting in a server error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment.
Approved, once conflict is resolved we can merge. |
What does this PR do?
Solves issue when resizing was not done properly if only one parameter was provided.
Not only we support proper resizing now, we also return full resolution unless asked to downscale.
Test Plan
(Yes, I tested all affected endpoints)
Related PRs and Issues
#3082
Have you read the Contributing Guidelines on issues?
Yes