Comments (1)
The imagesToIco function only accept an array of Jimp image as input and it is not easy to use. I have added support for list of file path as input, you can use it like this:
const fs = require('fs');
const pngToIco = require('png-to-ico');
pngToIco(['electron256x256.png', 'electron64x64.png', 'electron16x16.png'])
.then(buf => {
fs.writeFileSync('app.ico', buf);
})
.catch(console.error);
Can you try the new version (v2.1.0) and give me some feedbacks?
from png-to-ico.
Related Issues (19)
- 你好,如何自定义ico图标大小呢? HOT 3
- 生成的ico左下角异常 HOT 2
- Error: marker was not found HOT 2
- Problem installing HOT 7
- Using jimp-compact HOT 1
- Vulnerability in `jimp>@jimp/types>@jimp/jpeg>jpeg-js` (High) HOT 3
- electron-builder reports ico file is not valid Windows icon HOT 3
- Image size is zero? HOT 4
- `/lib` folder missing in v2.1.6 HOT 1
- Unable to use Buffer as input after Jimp -> pngjs replacement HOT 1
- Convert multiple .png´s at once? HOT 2
- Dependency Errors When Using png-to-ico in a Vue-CLI Project HOT 2
- support 24x24 and 64x64 sizes HOT 1
- Could not find MIME for Buffer <null> on nodejs HOT 3
- Migrate to sharp HOT 5
- Migrate to GitHub Actions HOT 1
- Fails checks of favicon checker HOT 4
- Corrupted icon generated every time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from png-to-ico.