@n30n/imageprocessingtoolkit
v1.0.0
Published
by n30n from CPI
Downloads
2
Readme
Image Processing Toolkit
Overview
The Image Processing Toolkit is a JavaScript library for performing various image processing tasks. It provides simple and easy-to-use methods for resizing, cropping, rotating, and applying filters to images.
Installation
To install the Image Processing Toolkit package, run the following command:
npm install image-processing-toolkit
Usage
Importing the library
const ImageProcessingToolkit = require('image-processing-toolkit');
const imageToolkit = new ImageProcessingToolkit();
Resizing an image
await imageToolkit.resizeImage('input.jpg', 'output.jpg', 300, 200);
Cropping an image
await imageToolkit.cropImage('input.jpg', 'output.jpg', 100, 100, 200, 150);
Rotating an image
await imageToolkit.rotateImage('input.jpg', 'output.jpg', 90);
Converting an image to grayscale
await imageToolkit.grayscaleImage('input.jpg', 'output.jpg');
License
This project is licensed under the MIT License - see the LICENSE file for details.