6.14.1 • Published 2 months ago
@uploadcare/image-shrink v6.14.1
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 bugbounty@uploadcare.com 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 hello@uploadcare.com.