-
Notifications
You must be signed in to change notification settings - Fork 125
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
[Feature request] Allow specifying a range for -zc
.
#545
Comments
Yeah, good question. See #463 where I removed this feature.
Btw, just out of interest, have you been testing oxipng for use with pngslim? I'd be curious to know how you've found it so far and whether it can wholly replace any of your other tools. |
Thanks @andrews05. Makes sense - please Close.
Early days... I like to test for a few years between releases... 😅 |
Cool, good to hear. |
@andrews05 - I'd like to know your dream list of features! I'm curious: when setting |
So there's essentially 3 places where we compress the image data:
The reduction evaluator currently runs with a fixed set of filters (None and Bigrams) and libdeflate compression at either level 7 or level 8, depending on the o level. A hypothetical brute mode would run using all selected filters at the selected compression level (or zopfli). Main compression trials would then be skipped as we would already have the final result (as happens at The Brute filter currently runs at libdeflate level 1 and compresses 4 lines at a time (the current line, plus 3 previous ones to provide context). A stronger version might, e.g., run at level 5 and compress 8 lines at a time. Other areas where there's room for improvement, in order of highest benefit (assumed):
|
Using optipng, I found that the different Deflate strategies of zlib work better with some images. Looking at libdeflate, the method changes with levels: Fastest -> Greedy -> Lazy -> Near_optimal see here.
I expected
-o max
would test--zc 1
to--zc 12
, but I understand why this is not implemented; (1) extreme and niche, (2) complicates use with-Z
.Would it be possible to specify ranges for oxipng (e.g.
--zc 1-12
, or--zc 1,3,5-9
), for the more efficient evaluation of these settings? i.e. avoids doing it via scripting outside the program. ... In the past, there was more flexibility in the low-level settings for zlib.Historic edge case by @andrews05 here.
The text was updated successfully, but these errors were encountered: