A simple tool to optimize and convert images to WebP format.
- Convert images to WebP format
- Optimize image sizes
- Automatic thumbnail generation
- Supports formats: JPG, JPEG, PNG, WebP
npm install- Place your images in the
assets/imagesfolder - Run the program:
npm start- Optimized images will be saved in
assets/images/optimized
You can modify the following settings in convert-img.js:
ASSETS_DIR: Source directory for imagesOUTPUT_DIR: Output directory- WebP quality (default: 80)
- Maximum image dimensions (default: 1920x1080)
- Thumbnail size (default: 400x300)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details