A multi-platform .NET library written in Net standard 2.0 for comic formating.
These are the comic formats that we currently support.
Format | Extract Images | Create Comic |
---|---|---|
CBR | ✔️ | ❌ |
CBZ | ✔️ | ✔️ |
CBT | ✔️ | ✔️ |
✔️ | ✔️ |
We can't convert to CBR files due to RAR compression algorithm license.
For start using the library just paste using ComicConverter;
in your C# file and follow the next examples depending on what you want.\
-
Note:
The final file result will append the file extension to the given name -
Convert CBR to PDF.
string comicPath = "./MyComic.cbr";
Comic comic = new Comic(comicPath);
comic.Convert("new Name", ComicFormat.Pdf);
- Convert PDF to CBZ
string pdfPath = "Comic.pdf";
Comic pdf = new Comic(pdfPath);
pdf.Convert("MyCbzComic", ComicFormat.Cbz);
- Create a CBZ comic from images paths.
string[] imagesPaths = {"Image1.png", "Folder/Image2.png"};
ComicBuilder.CreateCbz(imagesPaths, "comicName");
- Extract Cbr content to a folder.
string folder = "MyFolder";
string comic = "MyComic.cbr";
ImageExporter.UnRar(comic, folder);
For class documentation go to Documentation.