Skip to content

jsilverdev/dart_image_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
github-actions
Sep 22, 2023
9b555cf · Sep 22, 2023
Apr 3, 2023
Apr 3, 2023
Apr 4, 2023
Sep 22, 2023
Apr 4, 2023
Apr 4, 2023
Mar 28, 2023
Mar 27, 2023
Sep 22, 2023
Mar 15, 2023
Sep 22, 2023
Mar 16, 2023
Mar 29, 2023
Mar 29, 2023
Sep 22, 2023
Sep 22, 2023
Sep 22, 2023
Sep 22, 2023

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