Converts JPEG, PNG, WebP, GIF, SVG, TIFF images to .webp format with a max height of 1080 pixels.
- Ensure you have node installed (recommend using NVM and Node 8.11.1)
npm install
npm run init
(only need to do this if first time using library)
- Place images you wish to convert in the
source
folder (JPEG, PNG, WebP, GIF, SVG, TIFF) npm run convert
- Your converted files will be in the
dest
folder
If you modify the source, you must recompile the TypeScript. You can do this by
npm run build
, ornpm run convert:build
which will first recompile the code, then convert your images