# image-file-optimize

> With this Node module you can easily optimize image files,

Latest version **1.0.0** (published 2020-01-17) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install image-file-optimize
pnpm add image-file-optimize
yarn add image-file-optimize
bun add image-file-optimize
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-17 |
| First published | 2020-01-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ravi.dwivedi |

## Links

- npm: https://www.npmjs.com/package/image-file-optimize
- npm.io page: https://npm.io/package/image-file-optimize

## Recent versions

- 1.0.0 (latest) — 2020-01-17

## README

# image-file-optimizer

With this Node module you can easily optimize image files, 

## Installation
* Just include image-file-optimizer before your scripts.
* `npm install image-file-optimizer` if you’re using node.js.

## Usage

```javascript
const optimizerInstance = new imageOptimizer();
const reqParam = {
        s3Path: 'provide your s3 path',
        lossy: true,
        webp: true,
        rename: false,
        resize: [
            {
                id: 'small',
                strategy: 'fit',
                width: 100,
                height: 100
            },
            {
                id: 'medium',
                strategy: 'crop',
                width: 300,
                height: 300
            },
            {
                id: 'large',
                strategy: 'square',
                size: 400
            }
        ],
        files: files
    };
const optimizeResponse = await optimizerInstance.optimizationProcess(reqParam);

```

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