-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Avatar New style looks weird #34006
Comments
Oh now I see the issue, it wasn't about dark theme but the weird border |
Let me know if you have a manual patch you'd like to me test out |
Hello still having this issue on NC 25 RC1 |
@CarlSchwan could this happen if imagick is not enabled on an instance? |
Just to confirm I do have imagick installed |
@AndyXheli does your imagick setup have svg enabled? |
Hi @skjnldsv yes I have php-imagick & imagemagick installed. In the server overview I got a green check no issues or recommendations At first I didn't have imagemagick I just had php-imagick but I didn't get any warning on the server so I did some research and I seen that imagemagick so I did that also rebooted the server still the same issue |
Same problem on NC 25.0.1 |
@Ho551 have you upgrade through beta or RC before reaching stable 25 ? If so, can you clear your avatars and try generate them again? # cd into your appdata avatar directory
cd data/appdata_xxxxx/avatar
# look for generated avatar and delete their containing directory
find -name 'generated' -type f -execdir pwd \; | xargs -d '\n' rm -rfv
# update file cache to make Nextcloud generate them again on demand
occ files:scan-app-data avatar |
I'm guessing this is a browser cache issue. Please clear cache or try in a private window @Ho551 ? |
That's what I suspected too, but the problem still persists. |
Thanks, it means the problem persist indeed :) |
Hey there, I'm having some similar issues. It seems to be related with the User Status app. After disabling it, the not-so-beautiful avatars appeared. Re-enabling the app only changed my personal avatar in the top right corner (which returns to be not-so-beautiful when (re)loading the page, but is replaced after the page is fully loaded with the better avatar.) Nextcloud Version: 25.0.1 |
Could be an outdated component, indeed. For everyone that have this issue, can you manually fetch the avatar files of the broken users in your data/appdata/avatar/USERID and post them here please? I need to know the source of the issue, if it's coming from a broken generation or somewhere else :) |
@skjnldsv Looking at the generated images, this seems to be the problem. I attach the entire generated avatars in a zip archive |
Thank you @Ho551 , it really helps! 🙏 |
@come-nc ring a bell? Maybe a difference in parameters between 8.0 and 8.1? |
This comment was marked as abuse.
This comment was marked as abuse.
Hum, kind of. I remember having a problem with gd or imagick changing result is some PHP version. |
I have this test script left over on my disk, which indicates I did have trouble with this:
But I’m failing to find any more information on this. |
Here is what I have locally:
And with my PHP 8.2 built from source for tests:
So there is a 1 pixel difference between my 2 local versions already. |
Interesting! So is the issue maybe only reproducible on php 8.0 and below? |
No I think it depends upon which gd and/or freetype version is used. We need to test on as many setups as possible to see common patterns. |
Still an issue on NC 25.0.3 |
In case some of the devs need a instance to reproduce it. The problem also exists on the LTD's on try.nextcloud.com |
This comment was marked as outdated.
This comment was marked as outdated.
Still an issue NC 27 |
Still an issue on NC 27.0.1 tried below and cleared cache still an issue
|
The problem is in ImageMagick itself; before ImageMagick 6.9.10-36 (specifically, ImageMagick/ImageMagick6@3b6ba12), if the internal renderer is used (that is, if ImageMagick is built with To check this, first save the SVG of a Nextcloud avatar in a test.svg file:
Then, build ImageMagick 6.9.10-35 and 6.9.10-36 and check the generated PNG file (note that you will need to replace
To solve the issue you need to update ImageMagick to, at least, ImageMagick 6.9.10-36. If you are using Ubuntu 20.04 you can upgrade to Ubuntu 22.04, which uses ImageMagick 6.9.11-60 and therefore no longer has this issue. ImageMagick renders SVG files using either its internal render, rsvg-convert or Inkscape, so if you are in an old ImageMagick version and you can not update it you might be able to work around the issue just installing Inkscape. You could also rebuild ImageMagick with RSVG support, so it renders the SVG files through rsvg-convert rather than its internal renderer. However it seems that rsvg-convert has its own issues and it is not currently used when generating the avatars. Alternatively, if your distributon provides SVG support for ImageMagick in an additional package (for example, Finally, note that the rendering was wrong too with the old avatar style, but since Nextcloud 16 the problem was not visible because the font could not be found (the path to the font was not updated when lib/private/Avatar.php was moved to lib/private/Avatar/Avatar.php) and thus it always ended being rendered with GD; with the new avatar style the path got fixed and thus the problem appeared. |
Bug description
Steps to reproduce
After this was implemented #33752
Expected behavior
Should look more clear. Th users back end is running LDAP @CarlSchwan what do you think?
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: