-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: maximum image dimensions on preview generation and avatar upload #41175
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
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
phil-davis
left a comment
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.
Changelog needed.
core/Controller/AvatarController.php
Outdated
| $image = new \OC_Image(); | ||
| $image->load($handle); | ||
| $image->fixOrientation(); | ||
| // don't generate previews on images with too big dimensions |
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.
Comment needs adjustment: this is avatar upload, not preview generation
|
I guess we don't really want a migration in order to homogenize the avatars because it will be expensive. Any alternative or workaround? |
No - the issue is only during generating as far as I can say. |
7768dff to
83b4641
Compare
|

Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: