Skip to content

Grayscale images always use standard quant tables #98

@erikandre

Description

@erikandre

Describe the bug

Due to a check in quant.cc, any grayscale image will always use the standard quant tables even if the std_quant feature is not enabled. This is resulting in significantly worse quality/compression rates.

To Reproduce

Compress any grayscale (single channel) image using cjpegli, observe that you get the same output whether you use the "--std_quant" option or not.

Expected behavior

Difference in file size / quality when "--std_quant" is used

Environment

Should repro for any build config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions