A multi-plataform .NET library written in Net standard 2.0 for comic file formating.
These are the format that we currently support.
Format | Extract Images | Create Comic |
---|---|---|
CBR | ✔️ | ❌ |
CBZ | ✔️ | ✔️ |
CBT | ✔️ | ✔️ |
CB7 | ✔️ | ❌ |
✔️(only jpeg) | ✔️ |
We can't make cbr files due to RAR compression algorithm lincense.
For start using the library just compy and paste using ComicConverter;
and follow the next examples depending of your case.
- 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's content to a folder.
string folder = "MyFolder";
string comic = "MyComic.cbr";
ImageExtractors.UnRar(comic, folder);
For class documentation go to Documentation.