Skip to content
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

Fix user image being too cropped in #3005

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

DoggoOfSpeed
Copy link
Contributor

@DoggoOfSpeed DoggoOfSpeed commented Aug 28, 2023

Changes
On first open of the user select menu the transition between the placeholder and the user image forced the image to use the dimensions of the placeholder. This resulted in the image being far too cropped in.

Before
Screenshot 2023-08-28 133137

After
Screenshot 2023-08-28 133100

This is kinda a hack as I simply converted the placeholder image into a square, but it works and I'm not sure what else could be done.

@DoggoOfSpeed
Copy link
Contributor Author

Also, for some reason I'm only able to replicate the bug in 0.16 betas and on master. On the .15 release the image is loaded correctly with no issues.

@nielsvanvelzen
Copy link
Member

We switched the image library from Glide to Coil (#2889) for 0.16 so this is likely a regression from that change.

@thornbill
Copy link
Member

I noticed this also in the 0.16 branch fwiw

app/src/main/res/drawable/tile_square_user.xml Outdated Show resolved Hide resolved
app/src/main/res/drawable/tile_square_user.xml Outdated Show resolved Hide resolved
app/src/main/res/drawable/tile_square_user.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/fragment_server.xml Outdated Show resolved Hide resolved
@nielsvanvelzen
Copy link
Member

Issue seems to be caused by coil-kt/coil#1505, changing the placeholder to be square should be a good fix to workaround the issue.

Copy link
Member

@nielsvanvelzen nielsvanvelzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine except for the one comment.

app/src/main/res/layout/fragment_server.xml Show resolved Hide resolved
@nielsvanvelzen nielsvanvelzen added this to the v0.16.0 milestone Sep 19, 2023
@nielsvanvelzen nielsvanvelzen added the bug Something isn't working label Sep 19, 2023
@nielsvanvelzen nielsvanvelzen merged commit b10061b into jellyfin:master Sep 19, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants