JamieMason / JamieMason/ImageOptim-CLI

feat(cli): add option to choose lossy optimisations

Open
#196 4 comments 2 reactions 0 assignees View on GitHub
Status: Blocked Type: Feat
Dominant language
Rust
Stars
3.5k
Forks
128
PR merge metrics
No merged PRs in 30d

Description

## Description

Having the option to specify the quality of processed images will be really useful:

CleanShot 2023-06-02 at 18 07 55@2x

## Suggested Solution

Right now the `--quality` parameter affects only ImageAlpha. Adding a few more properties:
`--jpeg-quality`
`--png-quality`
`--gif-quality`
to have control over the quality same as in the ImageOptim application would allow using lossy minification also from the CLI

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the CLI handling for the existing --quality option and trace how it reaches ImageAlpha. Compare those arguments with the quality controls in the ImageOptim application, then determine where --jpeg-quality, --png-quality, and --gif-quality should be accepted and applied. Done means each option controls lossy optimisation for its image type from the CLI.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.