1.0.0 • Published 1 year ago
eversizeyouimage v1.0.0
Image Resizer
A simple image resizer package for Node.js. Uses the sharp
library to resize images.
Installation
To install the package, run the following command: npm install image-resizer
Usage
To use the image resizer, you'll need to install the sharp
library as a dependency. You can do this by running the following command:
npm install sharp
Once you have sharp
installed, you can use the resizeImage
function to resize images:
const imageResizer = require('image-resizer');
imageResizer.resizeImage('input.jpg', 'output.jpg', 200, 200)
.then(() => {
console.log('Image resized successfully');
})
.catch(error => {
console.error(error);
});
# eversizeyouimage
1.0.0
1 year ago