imageutilss3jimp

1.0.2 • Public • Published

Image Utils with S3

Image Util is a NodeJS library for dealing with images.

Has operations like:

  • Resize
  • Scale
  • Grayscale
  • Sepia

Installation

npm install

Run

npm run dev

Usage

const imageUtils = require('imageutilss3jimp');


imageUtils.init(
    AWS_ACCESS_KEY,
    AWS_SECRET_KEY,
    AWS_REGION_NAME,
    AWS_BUCKET_NAME,
);

await imageUtils.greyConvert({
    url: 'url-image.jpg',
});

await imageUtils.resizeImage({
    url: 'url-image.jpg',
    width: 50,
    height: 50,
});

await imageUtils.sepiaConvert({
    url: 'url-image.jpg',
});

await imageUtils.scale({
    url: 'url-image.jpg',
    scaleValue: 3,
});



Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i imageutilss3jimp

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.19 MB

Total Files

13

Last publish

Collaborators

  • dylas