View Single Post
Old 01-24-2024, 03:32 PM   #30
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,105
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Freeshadow View Post
-4, --shrink-insane
Set the compression level to "insane" using the zopfli compressor. You can define the compressor iterations with the -i, --iter option.
-i, --iter N(umber of) and NOT -N

the 7-Zip LZMA algorithm is available with the -N option

don't use the -N option then you get no lzma
and DON'T use it for creating with advzip -a OR --add because this will lead to said problems with meta.inf being shrinked too.
use ONLY advzip -z OR --recompress +the options I gave you with an already zipped! epub.
it "tightens" the deflate oppression streams in an epub file that has to be already present.
Again: don't use advzip for creating epub for said need having meta.inf remain unshrinked, don't use the -N option. Rezip only.

Reading as in RTFM
https://www.advancemame.it/doc-advzip
I was under the impression that we were discussing zopfli since the advzip I have does not support the command line options you specified. Probably since it is a old GUI interface to zip & unzip. Anyhow, I ran some tests using advzip from the Advance projects site. Sadly, using zopfli compression is still very slow. And for png files, my two large PNG files take way too long to compress using either zopflipng or advpng making them the two of the slowest png compressors I've tested. Great at the job but for my purposes not worthwhile.
DNSB is offline   Reply With Quote