A tool to convert an image file into an icon in JPG format.
- node - version 16.11.1 (https://nodejs.org/it/)
- Commander - (https://www.npmjs.com/package/commander)
- Jimp - (https://www.npmjs.com/package/jimp)
- Chalk - (https://www.npmjs.com/package/chalk)
The complete list of dependencies is included in ./package-lock.json.
Run npm install to install all dependencies.
In the project directory, you can run:
Displays all available information and options to run the program.
Runs the program. The relative path from the image file to convert to the repository's root must be provided. If the operation is successful, the converted image file can be found in converted-images directory. By default, the image is converted into JGP format.
In case a different format is wanted, it's possible to specify its extenstion as second CLI argument:
node main.js convert <filePathname> <extension>
The convert command is also aliased to be used as c: node main.js c <filePathname>
Displays all available information and options with regards to convert command.
Launches the test runner in the interactive watch mode.\
This project is licensed under the terms of the MIT license.