Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@drovp/icon-generator

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drovp/icon-generator

Generate .ico, .icns, or .png icons out of one or multiple png or svg files.

  • 3.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@drovp/icon-generator

Generate .ico, .icns, or .png icons out of one or multiple png or svg files.

Supports dropping multiple files of different sizes. Processor will then generate the missing sizes from the closest bigger input file.

For example, if you drop in two png files 32x32 and 1024x1024 pixels big, they'll be used as sources like so:

SizeDropped fileSize source
10241024.png1024.png
512x1024.png
256x1024.png
128x1024.png
64x1024.png
3232.png32.png
16x32.png
PNG

When dropping png files, the file should be of square dimensions, and at least 1024x1024 pixels big, or whatever is the max needed size in one of the generated icon files.

SVG

If you are dropping svg files, their intended size is determined by their file name. To specify svg file as being 32px big, its name needs to be in one of these formats:

  • 32.svg
  • 32x32.svg
  • foo-32.svg
  • foo-32x32.svg

Dropped SVG file without recognizable filename size is considered to be of infinite size.

Help

If you're generating favicons for browsers, this cheat sheet might be helpful: https://github.com/audreyfeldroy/favicon-cheat-sheet

Keywords

FAQs

Package last updated on 31 May 2022

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc