All Projects → kevva → to-ico

kevva / to-ico

Licence: MIT license
Convert PNG to ICO in memory

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to to-ico

Png To Ico
convert png to ico format
Stars: ✭ 88 (-23.48%)
Mutual labels:  converter, png, ico
Imagemin
[Unmaintained] Minify images seamlessly
Stars: ✭ 4,948 (+4202.61%)
Mutual labels:  png, buffer
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (+503.48%)
Mutual labels:  png, ico
Cairosvg
Convert your vector images
Stars: ✭ 453 (+293.91%)
Mutual labels:  converter, png
Doctron
Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel, add watermarks to pdf, convert pdf to images etc.
Stars: ✭ 141 (+22.61%)
Mutual labels:  converter, png
vectorexpress-api
Vector Express is a free service and API for converting, analyzing and processing vector files.
Stars: ✭ 66 (-42.61%)
Mutual labels:  converter, png
gb-convert
Gameboy tile conversion and map editor tool
Stars: ✭ 26 (-77.39%)
Mutual labels:  converter, png
Svgurt
Image -> SVG Vectorizing Tool - Live at:
Stars: ✭ 124 (+7.83%)
Mutual labels:  converter, png
Convert Svg
Node.js packages for converting SVG into other formats using headless Chromium
Stars: ✭ 133 (+15.65%)
Mutual labels:  converter, png
Density Converter
A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush.
Stars: ✭ 222 (+93.04%)
Mutual labels:  converter, png
ICNS2ICO
ICNS2ICO lets you easily convert icons from the Apple's ICNS format to the Windows ICO format.
Stars: ✭ 17 (-85.22%)
Mutual labels:  png, ico
image-optimizer
Image optimization using PHP
Stars: ✭ 28 (-75.65%)
Mutual labels:  png
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (-43.48%)
Mutual labels:  converter
xsampa
X-SAMPA to IPA converter
Stars: ✭ 20 (-82.61%)
Mutual labels:  converter
autosvg
Autosvg is tracing tool, which can convert image format like (jpg,png,gif) into vector
Stars: ✭ 35 (-69.57%)
Mutual labels:  png
romans
A Simple PHP Roman Numerals Library
Stars: ✭ 40 (-65.22%)
Mutual labels:  converter
CTR-tools
Crash Team Racing (PS1) tools - a C# framework by DCxDemo and a set of tools to parse files found in the original kart racing game by Naughty Dog.
Stars: ✭ 93 (-19.13%)
Mutual labels:  converter
symreader-converter
Converts between Windows PDB and Portable PDB formats.
Stars: ✭ 50 (-56.52%)
Mutual labels:  converter
dressup
Dress up your unicode!
Stars: ✭ 22 (-80.87%)
Mutual labels:  converter
pnglib-es6
Create png images in pure javascript (modern & fast ES6 version using typed Arrays)
Stars: ✭ 41 (-64.35%)
Mutual labels:  png

to-ico Build Status

Convert PNG to ICO in memory

Install

$ npm install --save to-ico

Usage

const fs = require('fs');
const toIco = require('to-ico');

const files = [
	fs.readFileSync('unicorn-16x16.png'),
	fs.readFileSync('unicorn-32x32.png')
];

toIco(files).then(buf => {
	fs.writeFileSync('favicon.ico', buf);
});

API

toIco(input, [options])

input

Type: Array string

Array of PNG image buffers.

The images must have a size of 16x16, 24x24, 32x32, 48x48, 64x64, 128x128 or 256x256 and they must have an 8 bit per sample (channel) bit-depth (on Unix you can check this with the file command: RGB(A) is supported, while colormap is not, because it's 8 bits per pixel instead of 8 bits per channel, which is 24 or 32 bits per pixel depending on the presence of the alpha channel). These are limitations in the underlying pngjs library. If you have a colormap PNG you can convert it to an RGB/RGBA PNG with commonly used image editing tools.

options

resize

Type: boolean
Default: false

Use the largest image and resize to sizes defined using the sizes option.

sizes

Type: Array
Default: [16, 24, 32, 48, 64, 128, 256]

Array of sizes to use when resizing.

Related

License

MIT © Kevin Martensson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].