v0.9.0
Breaking Changes
- Library Structure Rewrite: The library structure has been entirely rewritten, resulting in no backward compatibility.
Changes
- Output directory now works differently, folder structure only preserves with
--recursiveflag. --formatflag renamed to--codec,-fshortcut is not affected.- Removed stdin input, no more freezes when input files is not provided.
Stdin input will be returned in latest releases.
- Removed progress bar because of issues with
indicatifcrate.Progress bar will be returned in latest releases.
Refactor
- Divided crate to separate features to improve modularity.
- Divided
Configinto several parts for improved modularity. - Moved
CodecandImageFormatinto theconfigmodule. - Updated the
DecoderandEncoderstructs with more concise interfaces. - Updated error messages and handling to align with the new library structure.
- Enhanced
from_pathinDecoderto handle image format and orientation.
New Features
- Introduced
EncoderConfigfor configuring encoding. - Introduced
ResizeConfigfor configuring image resizing (optional). - Introduced
QuantizationConfigfor configuring image quantization (optional). - Added
fixed_orientationtoDecoderto save image orientation according to EXIF tag. - Added
-b --backupflag to backup input files in case of replacing.
Bug Fixes
- When glob cannot find any files, files provided by user will be processed.