image must be at least 256x256
See original GitHub issue- Version: 19.53.4
- Target: NSIS Web Win x64 and ia32
Building my app now always results in the following error:
image C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\build\icon.ico must be at least 256x256
The .ico
file is 256x256, I tried also using the 1024x1024 png version of my icon in the build folder but then it applies an icon that has horribly jagged edges.
I tried downgrading (used to work with 19.53.3), but since today there is some unlocked dependency that is not compatible with 19.53.3 which causes a bunch of errors when I try to build with the downgraded version:
ERRORS RELATED TO 19.53.3 AS OF TODAY
• electron-builder version=19.53.3
• loaded configuration file=C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\electron-builder.yml
• writing effective config file=dist\electron-builder.yaml
• skipped app dependencies rebuild reason=npmRebuild is set to false
• packaging platform=win32 arch=x64 electron=1.8.2-beta.3 appOutDir=dist\win-unpacked
SyntaxError: Unexpected token U in JSON at position 19
SyntaxError: Unexpected token U in JSON at position 19
at JSON.parse (<anonymous>)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:593:25
at Generator.next (<anonymous>)
at Generator.tryCatcher (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\util.js:16:23)
at PromiseSpawn._promiseFulfilled (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\generators.js:97:49)
at Promise._settlePromise (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\promise.js:574:26)
at Promise._settlePromise0 (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:773:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate [as _immediateCallback] (timers.js:711:5)
From previous event:
at WinPackager.resolveIcon (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\platformPackager.js:631:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:583:27
at Generator.next (<anonymous>)
at go$readdir$cb (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\graceful-fs\graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:149:20)
From previous event:
at WinPackager.getOrConvertIcon (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\platformPackager.js:612:11)
at Lazy.WinPackager._iconPath.Lazy (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:60:43)
at Lazy.get value [as value] (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\lazy-val\src\main.ts:18:23)
at WinPackager.getIconPath (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:200:27)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:297:33
at Generator.next (<anonymous>)
From previous event:
at WinPackager.signAndEditResources (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\winPackager.js:414:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:348:18
at Generator.next (<anonymous>)
From previous event:
at WinPackager.signApp (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\winPackager.js:432:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:217:16
at Generator.next (<anonymous>)
at runCallback (timers.js:773:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate [as _immediateCallback] (timers.js:711:5)
From previous event:
at WinPackager.doPack (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\platformPackager.js:289:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\platformPackager.ts:117:16
at Generator.next (<anonymous>)
From previous event:
at WinPackager.pack (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\platformPackager.js:207:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:361:24
at Generator.next (<anonymous>)
at xfs.mkdir.er (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\fs-extra\lib\mkdirs\mkdirs.js:37:14)
From previous event:
at Packager.doBuild (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\packager.js:423:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:305:52
at Generator.next (<anonymous>)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\graceful-fs\graceful-fs.js:99:16
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\graceful-fs\graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:149:20)
From previous event:
at Packager._build (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\packager.js:367:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\src\packager.ts:267:23
at Generator.next (<anonymous>)
at runCallback (timers.js:773:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate [as _immediateCallback] (timers.js:711:5)
From previous event:
at Packager.build (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\node_modules\electron-builder-lib\out\packager.js:323:11)
at C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\src\builder.ts:310:40
at Generator.next (<anonymous>)
From previous event:
at _build (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\out\builder.js:61:21)
at build (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\src\builder.ts:280:10)
at then (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\src\cli\cli.ts:49:4)
at runCallback (timers.js:773:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate [as _immediateCallback] (timers.js:711:5)
From previous event:
at Object.args [as handler] (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\src\cli\cli.ts:49:4)
at Object.runCommand (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\yargs\lib\command.js:235:44)
at Object.parseArgs [as _parseArgs] (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\yargs\yargs.js:1041:24)
at Object.get [as argv] (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\yargs\yargs.js:957:21)
at Object.<anonymous> (C:\Users\johann.rekowski\Documents\Apps\Media-Presenter\node_modules\electron-builder\src\cli\cli.ts:43:15)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
electron-builder refuses to work with 256 by 256 icon
Im trying to build a electron app using electron builder and I am getting the following error: Error: image ...
Read more >Icons
Icon size should be at least 256x256. needs to be placed in the buildResources directory (defaults to build ). It is important to...
Read more >Windows app icon with Electron & Electron Builder are Jagged
Here is a reference image. The built installer file's icon is jagged. After installation, the app start icon is jagged. I'm using a...
Read more >Resize image files online - Editor that allows you to ...
Change an image's size and file size with the Img2Go image resize tool. Resize image files for social media, uploading on the web,...
Read more >8-Bit and 16-Bit Images - MATLAB & Simulink
Reduce memory requirements by storing images as 8-bit or 16-bit unsigned integers. ... you must add 1 to convert a uint8 or uint16...
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
I have the same problem building for Mac. I’m using electron-builder 20.36.2.
@develar Problem fixed on my side with 19.53.5, thanks!