Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of variable JPEG2000 compression for different sizes #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rowanbeentje
Copy link

Make specified JPEG2000 compression apply variably across different icon sizes. Results in much smaller overall size with no visible loss of quality by allowing higher JPEG2000 compression level to be specified.

From the main commit note:

High JPEG2000 compression levels result in excellent results at large image dimensions, but can cause very visible artefacting for smaller icon dimensions. This commit applies the specified compression level for the large image sizes, applies less compression for 512_512 and 256_256 sizes, and disables compression for smaller sizes; this allows JPEG2000 compression to be increased overall for much smaller file sizes with no visible loss in quality, producing excellent output at compression levels of 0.2-05 for most icons.

Also outputs the compression level being used for each size in the output

High JPEG2000 compression levels result in excellent results at large
image dimensions, but can cause very visible artefacting for smaller
icon dimensions.  This commit applies the specified compression level
for the large image sizes, applies less compression for 512*512 and
256*256 sizes, and disables compression for smaller sizes; this allows
JPEG2000 compression to be increased overall for much smaller file
sizes with no visible loss in quality, producing excellent output at
compression levels of 0.2-05 for most icons.

Also outputs the compression level being used for each size in the
output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant