Repository navigation
feat(f5): jpeg quality estimate - #246
Merged
Merged
Conversation
sassman
commented
Feb 20, 2026
Member
- Implements the ImageMagick heuristic for estimating JPEG encoding quality from quantization tables.
- Uses dual hash+sums threshold scan with reference arrays from the standard IJG tables.
- Handles both grayscale and color JPEGs, with deduplication of per-component tables for correct qsum computation.
- Tested against ImageMagick-generated JPEGs at qualit es 10-100 (grayscale and color) with 0 deviation, plus our custom encoder output.
…ty detection - Implements the ImageMagick heuristic for estimating JPEG encoding quality from quantization tables. - Uses dual hash+sums threshold scan with reference arrays from the standard IJG tables. - Handles both grayscale and color JPEGs, with deduplication of per-component tables for correct qsum computation. - Tested against ImageMagick-generated JPEGs at qualit es 10-100 (grayscale and color) with 0 deviation, plus our custom encoder output.
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
- color images exercise the HASH_COLOR/SUMS_COLOR code path which is the real-world case - grayscale VESSEL-derived images only tested the gray path - all 10 quality levels (10–100) now generated from a single color source via ImageMagick Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #246 +/- ##
==========================================
+ Coverage 86.44% 86.53% +0.09%
==========================================
Files 38 39 +1
Lines 5023 5133 +110
==========================================
+ Hits 4342 4442 +100
- Misses 681 691 +10
🚀 New features to boost your workflow:
|
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.