Skip to content

kkristof200/jimpAutoCrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published