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

Fixed low quality images in Resizetizer #23924

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

TommiGustafsson-HMP
Copy link
Contributor

Description of Change

Added FilterQuality = SKFilterQuality.High to Paint in SkiaSharpTools. This fixes low quality images produced by Resizetizer.

Issues Fixed

[Windows] [.NET 9.0 Preview 5] App icon in the taskbar is pixelated (#23212).

Fixes #23212.

@TommiGustafsson-HMP TommiGustafsson-HMP requested a review from a team as a code owner July 30, 2024 18:46
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jul 30, 2024
@mattleibow
Copy link
Member

/azp run

mattleibow
mattleibow previously approved these changes Jul 30, 2024
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@mattleibow
Copy link
Member

Thanks for this PR! This is probably going to make a whole lot of images better that folks didn't even notice was poor quality.

@samhouts samhouts added the area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer label Jul 31, 2024
@mattleibow
Copy link
Member

/rebase

@mattleibow
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

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

@TommiGustafsson-HMP
Copy link
Contributor Author

Are the failing tests comparing some pre-rendered images? Because I added the High Quality filter, the resulting images can be different than before.

@MartyIX
Copy link
Contributor

MartyIX commented Aug 13, 2024

The debug message says:

Image was not equal. Error was 0.15364583333333334% (53241 pixels). See /Users/builder/azdo/_work/2/s/artifacts/bin/Resizetizer.UnitTests/Release/net8.0/../../../../../src/SingleProject/Resizetizer/test/UnitTests/errors/imageresults/ResizetizeImagesTests+ExecuteForAndroid/SingleRasterAppIconWithOnlyPathSucceedsWithoutVectors/output-camera-folderSLASHthe_alias.png-m-i.mask.png

so yes, it appears so.

https://dev.azure.com/xamarin/public/_build/results?buildId=120966&view=logs&jobId=c735c3c0-2f10-555e-4625-3331c8e9237d&j=c735c3c0-2f10-555e-4625-3331c8e9237d&t=c290249e-238e-5254-445d-aaabf06dd42c (tests running on macOS) contains a raw log file containing:

2024-08-07T11:22:10.0678190Z   Failed Microsoft.Maui.Resizetizer.Tests.ResizetizeImagesTests+ExecuteForAndroid.SingleRasterAppIconWithOnlyPathSucceedsWithoutVectors(name: "camera_color", alias: "camera_color", outputName: "camera_color") [255 ms]
2024-08-07T11:22:10.0711150Z   Error Message:
2024-08-07T11:22:10.0713800Z    Image was not equal. Error was 0.1931423611111111% (27702 pixels). See /Users/builder/azdo/_work/2/s/artifacts/bin/Resizetizer.UnitTests/Release/net8.0/../../../../../src/SingleProject/Resizetizer/test/UnitTests/errors/imageresults/ResizetizeImagesTests+ExecuteForAndroid/SingleRasterAppIconWithOnlyPathSucceedsWithoutVectors/output-camera_color-camera_color-m-i.mask.png

@mattleibow
Copy link
Member

I regenerated all the images, so let's see. Also, we can see the results of this.

@mattleibow
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MartyIX
Copy link
Contributor

MartyIX commented Aug 14, 2024

@TommiGustafsson-HMP
Copy link
Contributor Author

@dotnet-policy-service agree [company="Hyvän mielen pelit ry"]

@TommiGustafsson-HMP
Copy link
Contributor Author

@dotnet-policy-service agree company="Hyvän mielen pelit ry"

@mattleibow
Copy link
Member

The CollectionScrollToGroupWorks test is new and failing on main. Unrelated to this PR.

@mattleibow mattleibow merged commit 9361f90 into dotnet:main Aug 14, 2024
95 of 97 checks passed
@KeithBoynton
Copy link

How do I work out which release this will be included in?

@MartyIX
Copy link
Contributor

MartyIX commented Aug 23, 2024

@KeithBoynton With very high probability, it will be in the next .NET 8 SR9 release.

@KeithBoynton
Copy link

Thanks very much @MartyIX is there somewhere I can track that please?

@MartyIX
Copy link
Contributor

MartyIX commented Aug 23, 2024

Thanks very much @MartyIX is there somewhere I can track that please?

It can be complicated but the general rule is that what is in the main branch will be in the next .NET 8 service release. However, at some point a branch like https://github.com/dotnet/maui/tree/release/8.0.1xx-sr8 can appear and changes to main are no longer added to that branch. So when a release is very close then what is in main will be in the next release does not old.

There can be last minute changes based on testing.

btw: Changes for .NET 9 goes to the net9.0 branch.

PS: You can watch https://github.com/orgs/dotnet/projects/194/views/39 but it does not reflect reality 1:1.

@samhouts samhouts added fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Aug 27, 2024
@samhouts samhouts added fixed-in-9.0.0-rc.1.24453.9 and removed fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Sep 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer community ✨ Community Contribution fixed-in-9.0.0-rc.1.24453.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] [.NET 9.0 Preview 5] App icon in the taskbar is pixelated
6 participants