Repository navigation
Conversation
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.
This pull request introduces a new lossless JPEG optimization feature to the library, allowing users to optimize Huffman tables in JPEG images for smaller file sizes without changing pixel data. The update includes the new
optimizemethod, corresponding tests, documentation updates, and a version bump to 2.4.0.New Feature: Lossless Huffman Table Optimization
optimizemethod to theTurboJPEGclass, enabling lossless optimization of JPEG Huffman tables (similar tojpegtran -optimize). This reduces file size while preserving image data, with an option to exclude EXIF data. [1] [2]Documentation and Example Updates
README.mdwith a usage example for the newoptimizemethod.TESTING.mdto document the newoptimizetest and its coverage in the test suite. [1] [2]Testing
TestOptimizeclass intests/test_turbojpeg.pyto verify that the optimization is lossless and produces valid JPEGs with unchanged pixels.Versioning
2.4.0in bothsetup.pyandturbojpeg.pyto reflect the new feature addition. [1] [2]