Skip to content

Introduce "auto-limit" option instead of setting "quality" to "auto" #281

@rosell-dk

Description

@rosell-dk

Current state of affairs:
quality: Can be a number (0-100) or "auto".
max-quality: Only relevant when "quality" is set to "auto".
default-quality: To be used when quality detection isn't working

Proposed state of affairs:
quality: A number (0-100)
auto-limit: Boolean. If set, and quality detection is working, quality will be limited so it does not exceed that of the jpeg.

Pros:

  • It seems more intuitively comprehensible.
  • It reduces the number of related options with one.
  • Quality becomes a less complex type.

Cons:

  • Users must adopt to the change.

It should made such that the old options still work, but the library informs that they are deprecated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions