View Single Post
Old 01-23-2024, 10:30 PM   #26
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,076
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
I had working epub on even so small and old reader as an bebook mini so memsize isn't your problem; either is decomp speed ;the problem is that zopfli based tools as I tested them, don't allow to add unshrinked files to the archive (meta.inf in epubs) thus you can't CREATE epubs with zopfli tools. you have to take a traditionally created zip or other file containing deflate stringsand reshrink it with: advzip -z -4 -i 1000 $name.epub.
this operates only with the deflated sections WITHIN a file leaving the rest of a file (ANY file) untouched, and then all works fine.
An ePub has little to do with this discussion. I was working with CBZ files which were images only. Basically, I came out of the testing with the belief that zopfli is too slow to be of use to me and the 5% increase in compression ratio was not worth the time to achieve it.

As for your command line, what is it intended to do? Advzip last time I looked used 7-Zip's implementation of deflate while using zopfli by changing the executable name to zopfli and removing the space between the -i and the 1000 generates a .gz archive containing the epub by default while for my test epub which is 44,060,303 bytes, the epub.gz file came out as 44,005,894 for a massive 53KB size savings.
DNSB is offline   Reply With Quote