ts-image-compress
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
Copyright 2022. YunMinSeok all rights reserved.