Socket
Socket
Sign inDemoInstall

@ffflorian/electron-icon-generator

Package Overview
Dependencies
4
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ffflorian/electron-icon-generator


Version published
Maintainers
1
Created

Readme

Source

electron-icon-generator License: GPL v3 npm version

Based on https://github.com/jaretburkett/electron-icon-maker.

Prerequisites

  • Node.js >= 14
  • npm (preinstalled) or yarn

Installation

ℹ️ This is a hybrid CommonJS / ESM module.

Run yarn global add @ffflorian/electron-icon-generator or npm i -g @ffflorian/electron-icon-generator

Usage

electron-icon-generator --input /path/to/image.png --output /path/to/folder

Arguments

Usage: electron-icon-generator [options]

An icon generator to generate all the icon files needed for electron packaging

Options:
  -V, --version          output the version number
  -i, --input <file>     Input PNG file (recommended size: 1024x1024) (default: "./icon.png")
  -o, --output <folder>  Folder to output new icons folder (default: "./")
  -s, --silent           Don't log anything beside errors
  -h, --help             output usage information

Recommendations

Input file should be 1024*1024px or larger. Make sure it is a 1:1 aspect ratio on width to height.

Output structure

[output dir]
  -[icons]
    -[mac]
      - icon.icns
      -[png]
        - 16x16.png
        - 24x24.png
          ...
        - 512x512.png
        - 1024x1024.png
      -[win]
        -icon.ico

Keywords

FAQs

Last updated on 15 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc