Invalid Icon File Size
See original GitHub issueI am using electron-builder v=21.2.0 Building for windows.
It just about completes (it gets to ‘building’ step when this happens:
Error while loading icon from "C:\RP1\ArcMages\arcmages-vue-client\dist_electron\.icon-ico\icon.ico": invalid icon file size
Error in macro MUI_INTERFACE on macroline 86
Error in macro MUI_PAGE_INIT on macroline 7
Error in macro MUI_PAGE_INSTFILES on macroline 5
!include: error in script: "oneClick.nsh" on line 8
Error in script "<stdin>" on line 107 -- aborting creation process
at ChildProcess.childProcess.once.code (C:\RP1\ArcMages\arcmages-vue-client\node_modules\builder-util\src\util.ts:239:14)
at Object.onceWrapper (events.js:277:13)
at ChildProcess.emit (events.js:189:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
This is the properties of the .ico file it is trying to use.
I am generating my icons with the fllowing:
electron-icon-builder --input=./public/image/branding/ArcMageLogoV2.png --output=build --flatten
Icons are below. icons.zip
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
invalid icon size - NSIS Forums
invalid icon size. I just upgraded to NSIS 2.4.3 and substituted makensis.exe with the one from the special logging build: ...
Read more >Icon file invalid in Win7 only with fonts scaled to 125%
A customer has his fonts enlarged to 125% on Windows 7-64. This causes our app to crash with this error: System.ArgumentException: Argument ' ......
Read more >Icons - electron-builder
Files. Optional icon.icns (macOS app icon) or icon.png . Icon size should be at least 512x512. Optional background.png (macOS DMG background).
Read more >[Solved] Cannot upload icons - invalid size
Ive tried the icon in different sizes.. at the moment its 10x10pixels.. the size of it is 500bytes (and its a .png). the...
Read more >Build Failure due to Icon File - Visual Studio Feedback
png extension not valid. When I converted icon to a .jpg file compile still failed for same type reason. So, when I tried...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This would still be an issue within electron-builder then. Sadly the issue got closed.
@Sakari369 I had used that site too and it didn’t work; I think that site actually produces a bad ICO file.
I used this one instead: https://image.online-convert.com/convert-to-ico
I had to convert the ICNS to PNG first.