1.0.6 • Published 6 years ago

handy-image-processor v1.0.6

Weekly downloads
53
License
ISC
Repository
github
Last release
6 years ago

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
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago