Skip to content

mozjpeg support? #85

In review
In review

Description

@chad-loder

What are you trying to do?

Any chance of supporting mozjpeg's compression tricks?

What could the solution look like?

What do you do today?

No response

Activity

  1. added theissue type on Nov 28, 2026
  2. matmen commented on Nov 28, 2026

    @matmen
    Collaborator

    Thanks! Of mozjpeg's tricks, progressive scans with optimized Huffman tables are the ones I'd consider. In my tests they make files about 2–3% smaller without changing a single pixel, so it could look like encodeJPEG({ quality: 80, progressive: true }). Trellis quantization is several times slower in C and showed little gain at the same file size, so I wouldn't expect it in pure TypeScript.

    What do you need it for? Smaller files for the web, or something more specific?

  3. linked a pull request that will close this issueadd progressive JPEG encoding #86on Nov 28, 2026
  4. linked a pull request that will close this issueadd flat quantization tables to JPEG encoding #87on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions