Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.78 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.78 KB

JXL Zip Maker

JXL Zip Maker is a Rust-based command-line tool for converting images to JPEG XL format and creating zip archives of the converted images. It's designed to process large numbers of images efficiently using parallel processing. Tested from cjxl v0.10.3

Features

  • Converts various image formats (JPEG, PNG, GIF, OpenEXR, PNM) to JPEG XL
  • Creates zip archives of converted images
  • Supports parallel processing for improved performance
  • Configurable conversion settings
  • Option to delete source images and folders after conversion
  • Progress tracking with a command-line interface

Prerequisites

  • Rust (latest stable version)
  • cjxl command-line tool (JPEG XL encoder) must be installed and available in your system PATH

Installation

The compiled binary will be available in the target/release directory.

Usage

Run the program by providing the path to the folder containing images you want to convert:

./jxl-zip-maker /path/to/image/folder

If no path is provided, the program will prompt you to drag and drop a folder.

Configuration

The program uses a config.toml file for configuration. If the file doesn't exist, it will be created with default values. You can modify this file to customize the behavior of the program.

Example config.toml:

delete_folder = false
delete_source_image = false
make_zip = true
dont_use_trashcan_just_delete = false
error_ignore = false
png_args = ["--distance=0", "--effort=7"]
jpg_args = ["--effort=9", "--lossless_jpeg=1"]
gif_args = ["--distance=0", "--effort=7"]
pnm_args = ["--distance=0", "--effort=7"]
openexr_args = ["--distance=0", "--effort=7"]
xxhash_chunk_size = 1048576

Disclaimer

This tool modifies and potentially deletes files. Always ensure you have backups of your important data before using it.