# jimp-autocrop

> auto crop centre of a jimp image based on min and max ratio (width/height)

Latest version **0.1.0** (published 2020-09-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install jimp-autocrop
pnpm add jimp-autocrop
yarn add jimp-autocrop
bun add jimp-autocrop
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-09-27 |
| First published | 2020-09-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kristóf-Attila Kovács |
| Maintainers | kkristof200 |

## Links

- npm: https://www.npmjs.com/package/jimp-autocrop
- Repository: https://github.com/kkristof200/jimpAutoCrop
- Homepage: https://github.com/kkristof200/jimpAutoCrop#readme
- Issues: https://github.com/kkristof200/jimpAutoCrop/issues
- npm.io page: https://npm.io/package/jimp-autocrop

## Dependencies (3)

- [jimp](https://npm.io/package/jimp.md) ^0.16.1
- [typescript](https://npm.io/package/typescript.md) ^4.0.3
- [@types/node](https://npm.io/package/@types/node.md) ^14.11.2

## Recent versions

- 0.1.0 (latest) — 2020-09-27
- 0.0.2 — 2020-09-27

## README

# jimp-autocrop

auto crop centre of a jimp image based on min and max ratio (width/height)

## Install

```bash
npm i jimp-autocrop
```

## Usage

```typescript
import Jimp from 'jimp'
import { cropCentreFromPath } from 'jimp-autopcrop'

cropCentreFromPath('inPath', { outImgPath: 'outPath', ratio: { min: 0.75, max: 1.25 })
.then(res => {
    console.log(res.img, res.path)
})
.catch(err => console.log(err))
```

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