@uploadcare/image-shrink
v6.14.2
Published
Library for work with Uploadcare image shrink
Downloads
21,509
Readme
Uploadcare Image Shrink
File Uploader lets you accept hi-res images and shrink them in size to a reasonable resolution, keeping the original aspect ratio. See docs here wrapper to work with browser.
Install
npm install @uploadcare/image-shrink
Usage
import { shrinkFile } from '@uploadcare/image-shrink'
const shrinkedBlob = shrinkImage(blob, {
size: number,
quality?: number
})
Security issues
If you think you ran into something in Uploadcare libraries that might have security implications, please hit us up at [email protected] or Hackerone.
We'll contact you personally in a short time to fix an issue through co-op and prior to any public disclosure.
Feedback
Issues and PRs are welcome. You can provide your feedback or drop us a support request at [email protected].