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.git
Go to the project directory
cd dart_image_converter
Create .env from the .env.example
cp .env.example .env
Configure the IMAGES_PATH
in the .env file
IMAGES_PATH="path/to/images_path"
Install dependencies (if dart
its installed)
dart pub get
Start the cli app (if dart
its installed)
dart run bin/main.dart
If you don't have dart installed you can:
- On
Windows
simply double click inrun_win-x64.bat
file - On
Linux
simply double click inrun_linux-x64.sh
file
To run tests, run the following command
dart test