Simple file conversion program which converts images into .webp format, which is far more optimized to work as network images.
P.S: .env file must contain these variables, otherwise conversion won't be stored: OPTIMIZED_ASSETS_PATH, UNOPTIMIZED_ASSETS_PATH
- PNG
- JPG
- JPEG
- GIF
Run npm run start
command and make a post request with content type of 'form-data', containing the image file to convert.
Drop all image assets to be converted inside the unoptimized images folder described in the .env file and run npm run convert
. Quite simple.