-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix file thumbnail cropping and rounded thumbnail corners #5717
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
Conversation
- prevent thumbnail cropping - show proper file preview image in preview pane and grid view
@winston-de can you resolve the merge conflict? |
@winston-de should the thumbnails in the details layout have rounded corners as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
using var Thumbnail = await matchingStorageFile.GetThumbnailAsync(ThumbnailMode.ListView, thumbnailSize, ThumbnailOptions.ResizeThumbnail); | ||
var mode = thumbnailSize < 80 ? ThumbnailMode.ListView : ThumbnailMode.SingleItem; | ||
|
||
using var Thumbnail = await matchingStorageFile.GetThumbnailAsync(mode, thumbnailSize, ThumbnailOptions.UseCurrentScale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be done also on line 805 (when loading a folder thumbnail)?
It could solve #5723
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gave92 I also wonder whether my addition of ThumbnailOptions.ReturnOnlyIfCached
on that line has something to do with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@winston-de does this fix still work? |
Opened issue #9129 to keep track of this. |
Correction: the breaking change for this was in #7881. |
Resolved / Related Issues
Items resolved / related issues by this PR.
Details of Changes
Add details of changes here.
Validation
How did you test these changes?
Screenshots (optional)
