Simple command-line application to transform images and PDF's to resized jpg's images built with Dart
- Run without need to install dart (compiled files)
- Cross platform (Windows, Linux)
- Easily customizable
- Support many formats: (jpg, jpeg, png, gif, bmp, tiff, ico, webp, psd, pdf)
To run this project, you will need to add the following environment variables to your .env file
IMAGES_PATH Required
WIDTH Optional. Default value 400 (always in px)
HEIGHT Optional. Default value 400 (always in px)
SEARCH_TERM Optional. Default value "logo"
PREFIX_FILE Optional. Define the prefix name for each generated file. Default is empty
SKIP_FILES Optional. Skip or override files. Default to false
RESULTS_FOLDER Optional. Folder inside the IMAGES_PATH where the generated images were saved. Default value "results"
Clone the project
git clone https://github.com/jsilverdev/dart_image_converter.gitGo to the project directory
cd dart_image_converterCreate .env from the .env.example
cp .env.example .envConfigure the IMAGES_PATH in the .env file
IMAGES_PATH="path/to/images_path"Install dependencies (if dart its installed)
dart pub getStart the cli app (if dart its installed)
dart run bin/main.dartIf you don't have dart installed you can:
- On
Windowssimply double click inrun_win-x64.batfile - On
Linuxsimply double click inrun_linux-x64.shfile
To run tests, run the following command
dart test