Skip to content

A small node.js library for converting any image to webp file format or converting webp image to any image file format.

License

Notifications You must be signed in to change notification settings

stickerum/webp-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webp-converter

A small node.js library for converting any image to webp file format or converting webp image to any image file format.

This library uses precompiled executables of WebP for more info visit WebP.

What's New

  • Precompiled executables of WebP upgraded to v1.0.2
  • Promise-based structure

Installation

yarn add github:stickerum/webp-converter

How to use

cwebp — convert other image format to webp

const webp = require('webp-converter');

webp.cwebp('input.jpg', 'output.webp', '-q 80')
    .then(console.log)
    .catch(console.error);

dwebp — onvert webp image to other image format

const webp = require('webp-converter');

webp.dwebp('output.webp', 'input.png')
    .then(console.log)
    .catch(console.error);

About

A small node.js library for converting any image to webp file format or converting webp image to any image file format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.0%
  • HTML 26.6%
  • JavaScript 0.4%