-
-
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 thumbnail (status indicator) colours inverted after upgrade to 25.0.5 or 26.0.0 #37379
[Bug]: Avatar thumbnail (status indicator) colours inverted after upgrade to 25.0.5 or 26.0.0 #37379
Comments
Can you run the occ command within the container and retrigger the integrity check to assure this file does not pass? A diff would be interesting, and of course you could replace it with the original one: curl -O https://raw.githubusercontent.com/nextcloud/server/stable26/core/js/mimetypelist.js
diff mimetypelist.js /path/to/nextcloud/core/js/mimetypelist.js |
I upgraded from 25.0.4 to 25.0.5 and the thumbnail of one user is now inverted. |
I ended up replacing the file manually right after posting this issue, so I already deleted the file alas. But the |
Also, just to add extra info since it would be an easy thing to miss: I did try reuploading my avatar, but it sadly did not help. |
Did you try to clear the browser cache (CTRL+F5) and tested with other browsers? |
I did try CTRL+F5 a few times, and the issue persists when I use Chromium on a different machine. |
What file type is this avatar? SVG or another? And the thumbnail? Can be checked via Chromium developer tools. For SVG ImageMagick is used to create the thumbnails (if installed), not sure whether the same is true for all other image types. And I'm not sure how much control Nextcloud has about the result. I would have expected that Nextcloud only passes the image to PHP imagick/gd API with the task to scale it down to widthxlength and nothing more 🤔. I do not see this in any of the instances I recently updated or had a look at, but since two of your face the same inversion issue, even with NC 25.0.5, it seems like a change on Nextcloud end is responsible and not ImageMagick resp. its PHP module or GD 🤔.
Do you use the same Docker container or another setup/appliance? |
The avatar is a PNG image, as is the thumbnail. Interestingly, inspecting the element shows that the thumbnail file itself isn't inverted. I looked further in the page code and the computed CSS shows that an "invert" filter is applied in CSS, which seems to be intended to be applied to the icons in the same row:
|
cc @skjnldsv @nextcloud/server-frontend |
Great find! Introduced with #35666 Currently the other header bar icons (excluding the avatar) do not share a class, so either the avatar needs to be excluded from inversion explicitly ( |
Thanks. :) Yeah, for my instance, I've got a (custom) white SVG logo that I would prefer not to be inverted. |
I thought so. That doesn't make the fix easier, but I think its important to not touch any custom uploads, i.e. neither custom logos nor avatars. |
Bug description
I'm creating this issue after it was suggested by @solracsf in #37357 (comment)_
After upgrading to 26.0.0 I noticed that my user avatar had its colours inverted, but only in the top right corner with the status indicator, which seems incredibly odd. It seems like the status icon itself is also inverted (compare the green icon by the large avatar in the middle with the purple-ish one in the top right).
Image for reference, showing what the image looks like on my user profile (which renders it properly):
Steps to reproduce
Expected behavior
I expect the avatar/status icon to render with non-inverted colours.
Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
I installed via the
linuxserver/nextcloud
docker image, and contacted the maintainers of this image about the issue. They said it was better suited for here.The text was updated successfully, but these errors were encountered: