-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve handling of non-square avatars #7025
Conversation
You need to run make vendor and commit |
Committed the change to modules.txt but the build still seems to be failing |
You haven't run make vendor and committed |
Codecov Report
@@ Coverage Diff @@
## master #7025 +/- ##
=========================================
Coverage ? 41.48%
=========================================
Files ? 441
Lines ? 59526
Branches ? 0
=========================================
Hits ? 24696
Misses ? 31603
Partials ? 3227
Continue to review full report at Codecov.
|
modules/avatar/avatar.go
Outdated
@@ -5,9 +5,15 @@ | |||
package avatar | |||
|
|||
import ( | |||
"bytes" | |||
"code.gitea.io/gitea/modules/setting" |
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.
import sequence.
@@ -7,7 +7,9 @@ package avatar | |||
import ( | |||
"testing" | |||
|
|||
"code.gitea.io/gitea/modules/setting" |
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.
As above.
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Crop avatar before resizing (go-gitea#1268) Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com> * Fix spelling error Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
Crop avatars before resizing them. This prevents a user's first experience of Gitea being a nasty aspect ratio on their avatar.
Before
After
Discussion points
Questions
CI failing due to the missinggithub.com/oliamb/cutter
dependency - how should this be included/packaged? Go newbie here so advice/help welcome.