ZIMWRITERFS(1)
πΈ ZIMWRITERFS(1) πΈ
okay bestie, welcome to zimwriterfs π it's a User Command, it lives in section 1 of the manual, and it is literally the glow-up your plain ol' folder of HTML deserves. Let's get into it π«Ά
β¨ NAME β¨
zimwriterfs β creates ZIM files from a locally-stored directory. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
zimwriterfs [mandatory arguments] [optional arguments] HTML_DIRECTORY
ZIM_FILE
so yeah, mandatory stuff first, optional stuff after, and then two positional besties at the end. no cap. β¨
π DESCRIPTION π
π Mandatory arguments:
these are not optional, babe. you need them. periodt.
-w,--welcomeβ the path of the default/main HTML page. and listen, the path has to be relative toHTML_DIRECTORY. no absolute paths, no exceptions, iykyk. πΈ-f,--faviconβ the path of the ZIM file favicon. this path must also be relative toHTML_DIRECTORY, and the image needs to be a 48x48 PNG. yes, exactly 48 by 48. the icon is the main character, let it serve. π-l,--languageβ the language code of the content, in ISO639-3. that's the three-letter one, bestie. π-t,--titleβ the title of the ZIM file. give it a name, it deserves one π-d,--descriptionβ a short description of the content. short!! don't write an essay. π-c,--creatorβ the creator(s) of the content. plural is allowed, go off. β¨-p,--publisherβ the creator of the ZIM file itself. which is... not the same thing as the content creator, so don't mix them up πHTML_DIRECTORYβ the path of the directory containing the HTML pages you want to put in the ZIM file. this is your source material, your raw material, your moment. πZIM_FILEβ the path of the ZIM file you want to obtain. this is the output. the final look. the reveal. π
π Optional arguments:
these are the little extras, the accessories to the outfit, the cherry on top. lowkey the best part tbh.
-v,--verboseβ prints processing details onSTDOUT. she's chatty and we love that for her. π£οΈ-h,--helpβ prints this help. a classic. an icon. π«Ά-m,--minChunkSizeβ number of bytes per ZIM cluster. the default is2048. don't touch it unless you know what you're doing, fr fr.-x,--inflateHtmlβ tries to inflate HTML files before packing (*.html,*.htm, ...). note the word "tries" β it's doing its best. πΈ-u,--uniqueNamespaceβ puts everything in the same namespace'A'. and btw this might be necessary to avoid problems with dynamic/javascript data loading, so if your JS is acting up, this is your girl. π₯-r,--redirectsβ the path to the TSV file with the list of redirects. the format isurl,title,target_url, tab separated. keep the tabs, bestie, the tabs are load-bearing. π¦-i,--withFullTextIndexβ index the content and add it to the ZIM. searchable content, we stan. β-a,--tagsβ tags, semicolon separated. so many tags. tag it up. π·οΈ-n,--nameβ a custom (version independent) identifier for the content. version independent!! she doesn't change when the version does. iconic. π
π§ EXAMPLE π§
here's the moment you've been waiting for, the actual real-life usage, no edits:
zimwriterfs --welcome=index.html --favicon=m/favicon.png --language=fra
--title=foobar --description=mydescription --creator=Wikipedia
--publisher=Kiwix ./my_project_html_directory my_project.zim
look at that. --language=fra, title foobar, description mydescription, creator Wikipedia, publisher Kiwix, directory ./my_project_html_directory, output my_project.zim. chef's kiss, ate, no crumbs. π
π REPORTING BUGS π
found a bug? not the cute kind? report it to <https://github.com/openzim/zimwriterfs> π (yes, the angle brackets are part of it, that's just how it's written, don't @ me).
and that's the whole page bestie!! π this manual page is from OpenZIM, dated June 2018 β a vintage serve, honestly, and it still hits. now go make some ZIM files, you've got this π β¨π¦π
π¦ where this page comes from
- debian bookworm: zim-tools 3.1.3-1 Β· GPL-3.0-or-later
- debian trixie: zim-tools 3.5.0-1.2+b2 Β· GPL-3.0-or-later
- ubuntu jammy: zim-tools 3.1.0-3 Β· GPL-3.0-or-later
- ubuntu noble: zim-tools 3.2.0-1ubuntu5 Β· GPL-3.0-or-later
- ubuntu questing: zim-tools 3.5.0-1.2ubuntu2
- ubuntu resolute: zim-tools 3.5.0-1.2ubuntu3 Β· GPL-3.0-or-later
- ubuntu stonking: zim-tools 3.6.0-0.1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms