1.0.4 • Published 2 years ago
png-upload-optimizer v1.0.4
png-upload-optimizer
png-upload-optimizer is the simple solution for optimizing the upload of the png files by scaling down the image as per your command.
Steps Involved:
- Converts the uploaded file to string URL
- Then converts it to HTMLPageElement
- After that, it converts image to canvas and main resizing/scaling task is done here.
- Converts back to Unit8Array and back to png file
Getting Started
Install
npm i png-upload-optimizer
or,
yarn add png-upload-optimizer