image-to-ico
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

image-to-ico

🚣 Convert your image to ICO format

install

npm install --save-dev image-to-ico

usage

programming usage:

const fs = require('fs');
const imageToIco = require('image-to-ico');

imageToIco('electron.png',{
  size: [16,16],
  quality: 100,
  greyscale: false
})
  .then(buf => {
    fs.writeFileSync('app.ico', buf);
  })
  .catch(console.error);

options

option name description required
size set width & height false
quality set JPEG quality false
quality set greyscale false

license

MIT

Package Sidebar

Install

npm i image-to-ico

Weekly Downloads

72

Version

1.0.1

License

MIT

Unpacked Size

21.3 kB

Total Files

7

Last publish

Collaborators

  • tuchongyang