1.1.1 • Published 6 months ago

image-storage-utils v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Image Storage Utils

Utils for fetching, processing and storing image files

Examples

const defaultOptions = {
    allowStorage: true,
    storagePath: 'storage/images',
    imageSizes: ['1200x0', '960x960', '96x96', '320x320', '180x180', '160x160', '250x250', '80x80', '400x600', '540x540', '255x255']
};
const imageStorageUtils = new (require('image-storage-utils'))(defaultOptions);

let imageBuffer = await imageStorageUtils.loadImage(url);

let fitImageSize = imageStorageUtils.fitImageSize("600x600");
1.1.1

6 months ago

1.0.4

7 months ago

1.0.3

10 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago