@uploadcare/image-shrink
TypeScript icon, indicating that this package has built-in type declarations

6.14.1 • Public • Published

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.

/@uploadcare/image-shrink/

    Package Sidebar

    Install

    npm i @uploadcare/image-shrink

    Weekly Downloads

    2,632

    Version

    6.14.1

    License

    MIT

    Unpacked Size

    50.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • eadidenko
    • rsedykh
    • uploadcare-user
    • nd0ut