# image-simple-resize

> Resize images, optimize, convert to webp and deploy to AWS S3.

Latest version **0.0.5** (published 2020-06-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install image-simple-resize
pnpm add image-simple-resize
yarn add image-simple-resize
bun add image-simple-resize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-06-10 |
| First published | 2020-06-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| Author | Dmitriy Evtifeev |
| Maintainers | evtif |

## Links

- npm: https://www.npmjs.com/package/image-simple-resize
- npm.io page: https://npm.io/package/image-simple-resize

## Dependencies (2)

- [sharp](https://npm.io/package/sharp.md) ^0.25.2
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.691.0

## Recent versions

- 0.0.5 (latest) — 2020-06-10
- 0.0.4 — 2020-06-10
- 0.0.3 — 2020-06-10

## README

# Image simple resize

## How to use
- `npm install -D`
- add image files to a directory.
- import the package `const imgSimpleResizer = require('image-simple-resize')`
- `imgSimpleResizer` function takes 2 arguments:
  * __pathToImages: *string*__  use `path.join(__dirname, path_to_your_images)`
  * __options: *Options*__
    *   __awsConfig__: _AWSConfig_ {__bucket__: _string_; __accessKeyId__: _string_; __secretAccessKey__: _string_;}
    *   __imageSizes__: _ImageSizes_ {__thumbnail?__: _number_; __product?__: _number_; __origin?__: _number_;}
    *   __useWebp__: _boolean_ 
- see your optimized files in the AWS S3 bucket

---
_Source: https://npm.io/package/image-simple-resize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
