JSPM

  • Created
  • Published
  • Downloads 118
  • Score
    100M100P100Q50049F
  • License ISC

A simple library for circular cropping of images. This package can create several sizes of the same image and save them to disk. Using any method of your choice, you could upload the files to S3 after processing is complete.

Package Exports

  • circle-image

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (circle-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Circle-Image

circle-image is based on ImageMagick. You can install it one of the following ways:

On Ubuntu

$ apt-get install imagemagick

On Mac OS X

$ brew install imagemagick

On CentOS

$ yum install imagemagick

Installation

npm install circle-image --save

Usage

var images = require('circle-image');
var imageSizes = [125, 100, 30];
images.execute('imagepath', imageSizes);