Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

imagemin-upng

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Issues
File Explorer

Advanced tools

imagemin-upng

upng imagemin plugin

    3.0.0latest

Version published
Maintainers
1
Yearly downloads
15,383
decreased by-30.93%

Weekly downloads

Changelog

Source

  • Migrate to ES Module (#1573)

https://github.com/fisker/imagemin-upng/compare/v2.0.3...v3.0.0

Readme

Source

imagemin-upng

upng imagemin plugin

Install

npm install --save imagemin-upng

Usage

const imagemin = require('imagemin') const imageminUpng = require('imagemin-upng') imagemin(['images/*.png'], 'build/images', {use: [imageminUpng()]}).then(() => { console.log('Images optimized') })

API

imageminUpng([options])(buffer)

Returns a promise for a buffer.

options

cnum

Type: number Default: 256

number of colors in the result (0 = lossless, 256 = lossy).

buffer

Type: Buffer

Buffer to optimize.

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc