Skip to content

jsilverdev/dart_image_converter

Repository files navigation

Dart Image Converter

GitHub release License issues - dart_image_converter Build and Release

Simple command-line application to transform images and PDF's to resized jpg's images built with Dart

Features

  • 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)

Environment Variables

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"

Run Locally

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 in run_win-x64.bat file
  • On Linux simply double click in run_linux-x64.sh file

Running Tests

To run tests, run the following command

  dart test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •