You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use WebView2 "GetFaviconAsync" Method in my App the Favicons are blurry when displayed in larger sizes > 16 px.
I suppose this Method only returns Favicons in 16x16 which is suboptimal for my purpose and I dont want to switch to download the FavIcon manually when I already have this Method.
Is there a chance to make this Method return more quality Favicons?
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.80
SDK Version
1.0.2849.39
Framework
WPF
Operating System
Windows 11
OS Version
No response
Repro steps
I am using this code to create the BitmapSource
await using var iconAsStream = await webView.CoreWebView2.GetFaviconAsync(CoreWebView2FaviconImageFormat.Png);
var bitmap = new BitmapImage();
bitmap.BeginInit();
bitmap.StreamSource = iconAsStream;
bitmap.CacheOption = BitmapCacheOption.OnLoad;
bitmap.EndInit();
Icon = bitmap;
This code was also used:
await using var iconAsStream = await webView.CoreWebView2.GetFaviconAsync(CoreWebView2FaviconImageFormat.Png);
var decoder = new PngBitmapDecoder(iconAsStream, BitmapCreateOptions.None, BitmapCacheOption.OnLoad);
BitmapSource bitmapSource = decoder.Frames[0];
Icon = bitmapSource;
Result Image in Size 32x32 px
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
When I use WebView2 "GetFaviconAsync" Method in my App the Favicons are blurry when displayed in larger sizes > 16 px.
I suppose this Method only returns Favicons in 16x16 which is suboptimal for my purpose and I dont want to switch to download the FavIcon manually when I already have this Method.
Is there a chance to make this Method return more quality Favicons?
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.80
SDK Version
1.0.2849.39
Framework
WPF
Operating System
Windows 11
OS Version
No response
Repro steps
I am using this code to create the BitmapSource
await using var iconAsStream = await webView.CoreWebView2.GetFaviconAsync(CoreWebView2FaviconImageFormat.Png);
var bitmap = new BitmapImage();
bitmap.BeginInit();
bitmap.StreamSource = iconAsStream;
bitmap.CacheOption = BitmapCacheOption.OnLoad;
bitmap.EndInit();
Icon = bitmap;
This code was also used:
await using var iconAsStream = await webView.CoreWebView2.GetFaviconAsync(CoreWebView2FaviconImageFormat.Png);
var decoder = new PngBitmapDecoder(iconAsStream, BitmapCreateOptions.None, BitmapCacheOption.OnLoad);
BitmapSource bitmapSource = decoder.Frames[0];
Icon = bitmapSource;
Result Image in Size 32x32 px
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: