ts-image-compress
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ts-image-compress

📄 Want to reduce the size of your images?

Status License

Copy to clipboard React component(Typescript)


🎯 Getting started

Install

npm install ts-image-compress

Import

import { ImageCompress } from "ts-image-compress";



👀 How to use

Add this code

import { ImageCompress } from "ts-image-compress";

const handleResizeImage = async (image) => {
  // Image type must be file
  const resizeResult = await ImageCompress(image);
};



🪄 License

MIT License

Copyright 2022. YunMinSeok all rights reserved.

Package Sidebar

Install

npm i ts-image-compress

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

10.2 kB

Total Files

12

Last publish

Collaborators

  • yunminseok