Skip to content

highDPI support for profile picture #3514

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

Closed
2 of 7 tasks
suntorytimed opened this issue Feb 14, 2018 · 6 comments
Closed
2 of 7 tasks

highDPI support for profile picture #3514

suntorytimed opened this issue Feb 14, 2018 · 6 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality

Comments

@suntorytimed
Copy link

suntorytimed commented Feb 14, 2018

  • Gitea version (or commit ref):
    6eaeb01
  • Git version: irrelevant
  • Operating system: irrelevant
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

A high resolution avatar is pixelated on highDPI displays (f.e. https://gitea.hibiki.eu/suntorytimes on a 4K UHD 32" display)

Offer/allow higherDPI profile pictures or SVG graphics.

To reproduce the bug it is necessary to set the highDPI scaling (f. e. on Gnome with Scale 200% in Displays settings) and use a profile with a high resolution avatar (https://gitea.hibiki.eu/suntorytimes)

Screenshots

maybe you have to enlarge the screenshots to see the difference. To see the high resolution on a regular screen it is best to visit my profile page https://gitea.hibiki.eu/suntorytimes
Screenshot with highDPI:
screenshot with highDPI

Screenshot with normal DPI:
screenshot on regular DPI

@suntorytimed suntorytimed changed the title Higher resolution for avatar highDPI support for profile picture Feb 14, 2018
@silverwind
Copy link
Member

The fix here should be pretty simple. The image is pulled from Gravatar with s=290. To support modern displays, I suggest changing this to 3 times the image width, e.g. s=870 in this example. There are a few mobile devices that support 4 dppx, but those are primarily phones.

@suntorytimed
Copy link
Author

@silverwind this would only fix the issue with Gravatar. A fix for "Use Custom Avatar" is also necessary (f.e. by saving the uploaded image in a higher resolution).

@stale
Copy link

stale bot commented Feb 8, 2019

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.

@stale stale bot added the issue/stale label Feb 8, 2019
@lunny lunny added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Feb 8, 2019
@suntorytimed
Copy link
Author

Unfortunately I don't have a highDPI screen anymore to test this.

@lunny
Copy link
Member

lunny commented Feb 9, 2022

I think this has been resolved. @silverwind Could you help to confirm?

@silverwind
Copy link
Member

Yes, all avatars on the UI are rendered with AVATAR_RENDERED_SIZE_FACTOR config option, which defaults to 3 currently, which is definitely HiDPI.

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants