png-cutter
v1.0.9
Published
Cut out the transparent pixels around the png image to reduce the size of the png image.
Downloads
21
Maintainers
Readme
png cutter
How to use ?
npm install png-cutter
import { pngCutter } from 'png-cutter';
/**
* @param (string) dataUrl Picture URL or Base64
*/
const result = await pngCutter(dataUrl);
Example: https://shiverzheng.github.io/png-cutter/lib/index.html