0.2.16 • Published 7 years ago

teamlockr-s3-imagekit v0.2.16

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

npm version

TeamLockrS3ImageKit

S3 Image Kit for the TeamLockr platform

Developed by TeamLockr Dev Team

3 Simple Methods:

cropImage resizeFromUrl resizeImage

These three methods will crop and resize from S3 and create new images based on the parameters passed in.

High level view:

This app is used to resize images that are present remotely or locally, and then will upload them to the appropriate S3 bucket and objectPath. Users of this app include the image profile picture handler that resizes uploaded profile pictures for performance benefits and also used by the media library to create various sizes e.g medium, large, small etc.

Requirements

To use the resizer, firstly make sure that you've installed either imagemagick or graphicsmagick

On OS X, you can do so by brew install imagemagick

Next

$ npm install gm

Functionality

It exposes a few functions:

  • resizeFromUrl
  • resizeImage

1) resizeFromUrl: Takes in sizes, a sourceUrl, bucket, a key, as well the name that will be assigned to the downloaded and resized file when uploaded.

  • Tip: For more usage on gm you can checkout gm methods
0.2.16

7 years ago

0.2.15

7 years ago

0.2.13

7 years ago

0.2.12

7 years ago

0.2.11

8 years ago

0.2.10

8 years ago

0.2.9

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago