By default chromium adds a margin of 8px around img tags, causing the image in the splashscreen to shrink to fit in its parent browserwindow that is set with the image's dimensions, making it blurry.
A fix would be to add margin: 0 in the style of the img here:
https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.Host/splashscreen/index.html
- Version: 13.5.1
- Target: net5.0
Steps to Reproduce:
- Put image in
electron.manifest.json:
"splashscreen": {
"imageFile": "my-image.png"
},
- Build and run app
By default chromium adds a margin of 8px around
imgtags, causing the image in the splashscreen to shrink to fit in its parent browserwindow that is set with the image's dimensions, making it blurry.A fix would be to add
margin: 0in the style of theimghere:https://github.com/ElectronNET/Electron.NET/blob/master/ElectronNET.Host/splashscreen/index.html
Steps to Reproduce:
electron.manifest.json: