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

Windows icon in taskbar 'cut in half', until the app is 'pinned' #2128

Closed
amir-hadi opened this issue Sep 28, 2017 · 8 comments
Closed

Windows icon in taskbar 'cut in half', until the app is 'pinned' #2128

amir-hadi opened this issue Sep 28, 2017 · 8 comments
Labels

Comments

@amir-hadi
Copy link

  • Version: 19.31.1
  • Target: win (NSIS)
    My icon is broken / cut in half in Windows 10. I could not test other Windows versions yet. Interestingly the icon appears correct when I 'pin' the app to the taskbar.

Here are example screenshots:
capture
capture2

We are using an 256x256 sized ICO file. Can anyone advise? Did someone experience similar issues yet?

@eshcharc
Copy link

I experience the same issue. Any news regarding this?

@tylerjames
Copy link

I had a similar thing where my icon appeared with black vertical lines running down it until I pinned and then unpinned it.

I built from a Mac. The .ico file appears just fine in Finder. No idea what the problem is.

@ortichon
Copy link

ortichon commented Aug 9, 2018

@amir-hadi @eshcharc @tylerjames
Joining late to this thread...
I've fixed a similar issue by changing the icon property of electron-builder.json to be more specific.
initially I had:

{
...
    "win": {
        "icon": "dist",
        "target": ["portable"]
    },
...
}

and now I have:

{
...
    "win": {
        "icon": "dist/favicon-256x256.png",
        "target": ["portable"]
    },
...
}

hope it helps.
worked for me on

  • version : 20.14.7
  • operation system : windows 10

@Last-Order
Copy link

As the issue which referenced this one. Using icofx to generate ico files can solve this problem.
mb21/panwriter#2 (comment)
mb21/panwriter#2 (comment)

@stale
Copy link

stale bot commented Jul 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Venryx
Copy link

Venryx commented Sep 13, 2020

The solutions in the panwriter issue thread worked for me (my comment: #5083 (comment)).

It would be nice if electron-builder handled this itself someday, though. (avoiding the image cut-off issue, without being so picky about the input file for the icon)

@CookieTriste
Copy link

CookieTriste commented May 9, 2023

I find a simple solution that works every time. Just compile it normally, then use a third-party app like Resource Hacker to manually change the icon.

@Vaisak-P
Copy link

the same issue was for me also, I tried using https://icoconvert.com/ which was having option to make icons specifically for windows(ICO for Windows 10, Windows 11, 7 and 8). After using the converted image it was working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants