Comments (2)
I forgot to put example usage in the docs how to use compression for cbz and epub formats, sorry about that.
Basically, you need to set 2 environments to enable compression
MANGADEXDL_ZIP_COMPRESSION_TYPE
MANGADEXDL_ZIP_COMPRESSION_LEVEL
By default, MANGADEXDL_ZIP_COMPRESSION_TYPE
is set to stored
which means the archive is not compressed at all. So you need to set it to other than stored
(deflated, bzip2, lzma)
set MANGADEXDL_ZIP_COMPRESSION_TYPE=deflated
set MANGADEXDL_ZIP_COMPRESSION_LEVEL=1
mangadex-dl.exe "https://mangadex.org/chapter/9f20eb08-abe9-4fb6-acde-5f85049fe24d" --save-as cbz
As you seen in the docs, if you set MANGADEXDL_ZIP_COMPRESSION_TYPE
to lzma
, environment MANGADEXDL_ZIP_COMPRESSION_LEVEL
has no effect at all.
set MANGADEXDL_ZIP_COMPRESSION_TYPE=lzma
mangadex-dl.exe "https://mangadex.org/chapter/9f20eb08-abe9-4fb6-acde-5f85049fe24d" --save-as cbz
Why is no compression even the default? Deflated level 1 is producing a noticeable difference with jpegs (like 230kb -> 191kb), while higher levels doesn't do much (deflated L9 189kb, other compression type are also similar).
I'd guess that deflated level 1 has negligible impact on compression and decompression speeds, and there are no compatibility issues either, I don't see drawbacks with it.
The reason i did this because some systems may not have required modules to do compression stuff. Maybe you thinking that you have all requirements, but i'm thinking about the other users. Also it saves time for me to debug errors.
from mangadex-downloader.
Ah thanks, specifying both MANGADEXDL_ZIP_COMPRESSION_TYPE
and MANGADEXDL_ZIP_COMPRESSION_LEVEL
indeed works.
from mangadex-downloader.
Related Issues (20)
- Downloading from private MDList with use_volume_cover set as true causes it to crash when using cbz-volume mode HOT 1
- Add a option to automatic download new ongoing chapter HOT 6
- allow --start-page and --end-page to be relative to end of chapter HOT 1
- FileNotFoundError when downloading PDF volumes HOT 2
- Some manga URLs don't get downloaded correctly HOT 1
- "cover:url" fails on v2.10.2 HOT 2
- Failed connect errors HOT 1
- Add placeholders support for `--path` option HOT 2
- Oauth2 not working, Client not found HOT 1
- Generate ComicInfo.xml for volumes as well HOT 2
- Add support for Kavita naming convention HOT 2
- Do not change Date Modified if there's no new files added HOT 2
- Some manga doesnโt get downloaded fully HOT 3
- Epub-volume doesn't add cover art HOT 1
- AttributeError (unhandled exception) attempting to download specific manga HOT 1
- Change name ordering HOT 1
- Skip already downloaded chapters (that were moved to other place) HOT 5
- Failed to find volume cover for volume "X". Falling back to manga cover... HOT 2
- Download tracker deletes volumes and does not upgrade new chapters HOT 2
- Add command to download manga information only HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mangadex-downloader.