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
[userprofile] blurry user profile pictures #122
Comments
Hi @Wurzelmann! Thanks for your report. I just tried and the macro uses a version of the avatar resized to the size it uses. I should give the best results on a non hi dpi screen. Arguably this is not great for hidpi screens with a scale hight than 1, or zoomed page. What hardware, browser and profile picture do you use? If you know how to get this information, please give the scale used by your screen and your zoom level. |
Hi, thanks for getting back to me on this. Honestly, I tried this on various screens and browsers (mostly Firefox, but also Chromium), tested on 4k screens (150% scaling), 1080p screens (100% scaling), desktops and laptops. It did not really matter which devices we used, they were always blurry. |
Hi @Wurzelmann thanks for your quick answer. Would you have a test avatar picture we could try, and maybe a screenshot demonstrating the issue? |
For privacy and this test, I used a random picture from https://thispersondoesnotexist.com/. The pictures have a resolution of 1024x1040 pixels (so picture quality should not be an issue). When I use the "user profile" macro, it always shows up like this (external link to my personal file share solution, link valid for 31 days) |
Thanks @Wurzelmann We might be using a too low quality when resizing, but at this point I would suggest you to open an issue at jira.xwiki.org with all this information. I believe this is an XWiki issue that's not specific to the userProfile macro. I think userProfile works as intended. |
Hm, what image do you mean? The one I used in my screenshot? For privacy reasons, I cannot give you the actual picture of a real employee, sorry. If you mean the one in the screenshot: it's this one |
@raphj the user profile macro is calling
So what you could do is to:
|
Ok, I have replaced #mediumUserAvatar() with #largeUserAvatar() I get this resized profile picture: It is better indeed. I'm committing this and closing the issue, but feel free to re-open if you think it's still not enough @Wurzelmann. |
Thanks, way better indeed! |
Although our user profile pictures are being uploaded in a reasonable quality, as soon as we use the userprofile macro on a page, the images get very pixelated and blurry there.
The text was updated successfully, but these errors were encountered: