CBZ libraries
A CBZ is a ZIP archive, so any ZIP library reads and writes it. What makes it a comic is a few conventions on top: pages sorted by name in natural order, the first page as cover, and ComicInfo.xml metadata. The library pages below show those comic-specific tasks. For general ZIP features see the ZIP page.
| Language | Library | Read | Write | Notes |
|---|---|---|---|---|
| C/C++ | libzip | yes | yes | ZIP only, random access by index or name |
| C/C++ | libarchive | yes | yes | one API for CBZ, CBR, CB7, CBT; streaming |
| C# | System.IO.Compression | yes | yes | built into .NET |
| C# | SharpCompress | yes | yes | one API for ZIP, RAR, 7z, TAR |
| Java | java.util.zip | yes | yes | built into the JDK |
| Java | Apache Commons Compress | yes | yes | ZIP, 7z, TAR; better ZIP edge cases |
| Go | archive/zip | yes | yes | standard library, fs.FS support |
| Go | archives | yes | yes | mholt/archives: one API for ZIP, RAR, 7z, TAR |
| Python | zipfile | yes | yes | standard library |
| Python | comicbox | yes | yes | comic-specific: pages, covers, ComicInfo and other metadata |
| Ruby | rubyzip | yes | yes | the standard Ruby ZIP gem |
| Rust | zip | yes | yes | pure Rust |
| PHP | ZipArchive | yes | yes | bundled zip extension |
By language#
- CBZ libraries for C/C++ Open-source C/C++ libraries to read and write CBZ comic book archives: libzip and libarchive. List pages in natural order, extract the cover.
- CBZ libraries for C# Open-source .NET libraries to read and write CBZ comic book archives: System.IO.Compression and SharpCompress. Page order, cover and ComicInfo.xml.
- CBZ libraries for Java Open-source Java libraries to read and write CBZ comic book archives: java.util.zip and Apache Commons Compress. Page order, cover extraction.
- CBZ libraries for Go Open-source Go libraries to read and write CBZ comic book archives: the standard archive/zip package and mholt/archives. Page order, cover extraction.
- CBZ libraries for Python Open-source Python libraries to read and write CBZ comic book archives: the standard zipfile module and comicbox. Page order, cover extraction.
- CBZ libraries for Ruby Open-source Ruby library to read and write CBZ comic book archives: rubyzip. List pages in natural order, extract the cover and read ComicInfo.xml in Ruby.
- CBZ libraries for Rust Open-source Rust library to read and write CBZ comic book archives: the zip crate. List pages in natural order, extract the cover.
- CBZ libraries for PHP Open-source PHP library to read and write CBZ comic book archives: the bundled ZipArchive class. List pages in natural order, extract the cover.