Imageresizer

0.1.7 • Public • Published

Imageresizer

ImageResizer is a node.js tool for resizing and compressing images for displaying on the web. ImageResizer is using ImageMagick and mozjpeg to resize and compress.

Installation

Imageresizer requires imagemagick, and mozjpeg to run.

In your terminal on Linux:

sudo npm install Imageresizer

Usage

var im = require("Imageresizer");
im.resizeCompress({
    srcPath: "source.jpg",
    destPath: "destination.jpg",
    enableMozjpeg: true, // true | falsetrue will enable mozjpeg lossless compression
    "-auto-level":"" //Use any options from imagemagick convert
}, (error, result) => {
    if (error) throw error;
    console.log(result);
});

Package Sidebar

Install

npm i Imageresizer

Weekly Downloads

0

Version

0.1.7

License

BSD-2-Clause

Last publish

Collaborators

  • aaabhilash97