0.0.4 • Published 9 years ago

all-image v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

all-image

Simple image utility toolbelt for node .

npm.io

Install

npm install all-image

Usage

var all = require('all-image')

API

 getImageHeight('path/to/image.jpg', function(height) {})

gets height of an image

 getImageWidth('path/to/image.jpg', function(width) {})

gets width of an image

 getImageExt('path/to/image.jpg', function(extension) {})

gets file extension of image

checkForImage('image-url', function(boolean) {})

returns boolean for whether URL is an image or not

 getDataUri('path/to/image.jpg', function(dataUri) {})

returns base64 encoding of an image

 checkDiff('path/to/image1.jpg', 'path/to/image2.jpg', function(boolean) {})

returns boolean for whether 2 images are similar or not

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago