jimp-autocrop
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

jimp-autocrop

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

Install

npm i jimp-autocrop

Usage

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))

Readme

Keywords

none

Package Sidebar

Install

npm i jimp-autocrop

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

8.61 kB

Total Files

13

Last publish

Collaborators

  • kkristof200