包详细信息

@uploadcare/image-shrink

uploadcare106.6kMIT6.15.2

Library for work with Uploadcare image shrink

uploadcare, signed, uploads, secure

自述文件

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.

API Reference

Build Status NPM version GitHub release Uploadcare stack on StackShare

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.