Skip to content

Splashscreen image is blurry because it's resized #622

@domialex

Description

@domialex

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:

  1. Put image in electron.manifest.json:
"splashscreen": {
    "imageFile": "my-image.png"
  },
  1. Build and run app

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions