[x]):When uploading a non-square image as an avatar, it gets resized to a square image. This results in distorted avatars. In my opinion, It would be reasonable to crop the image and maintaining the original aspect ratio.
https://github.com/go-gitea/gitea/blob/master/models/user.go#L431
Unfortunately, the used library for image resizing (https://github.com/nfnt/resize) does not seem to support cropping.
Gogs issue: https://github.com/gogits/gogs/issues/4132
I would pad, rather than crop, the uploaded image.
I think that this could be done on the front-end before it is uploaded (similar to GH) using something like this
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
This issue has been automatically closed because of inactivity. You can re-open it if needed.
Automatic closing of Issues make no sense.
Please give a status about this Issue? Is it fixed? Will it be fixed?
Sorry, It is fixed by #7025
Most helpful comment
I think that this could be done on the front-end before it is uploaded (similar to GH) using something like this