handy-image-processor

1.0.6 • Public • Published

Handy-Image-Processor

A handy, simple & useful Image Processor for NodeJS with very simple API.

Requirements

  1. gm

Install

First install.

# with npm 
npm install handy-image-processor
 
# or with Yarn 
yarn add handy-image-processor

Usage

// Import
const Processor = require('handy-image-processor')
 
// For processing
Processor.ProcessImage(options:Object):Promise
options = {
    srcFile,    // Image source      [eg. './src/image.gif']
    width,      // width you want    [eg. 100]
    height,     // height you want   [eg. 100]
    destFile:   // Image destination [eg. './dest/'+ new Date().getTime() +'.png']
}
 
// For deleting all the files of any given folder
Processor.DeleteFolder(folder:String):Promise

Package Sidebar

Install

npm i handy-image-processor

Weekly Downloads

11

Version

1.0.6

License

ISC

Unpacked Size

182 kB

Total Files

7

Last publish

Collaborators

  • takkar