|
| 1 | +# CBZ2EPUB |
| 2 | + |
| 3 | +CBZ2EPUB is a command-line tool for working with comic book archives. It allows you to merge multiple CBZ (Comic Book ZIP) files into a single file and convert CBZ files to EPUB format for e-readers. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Merge multiple CBZ files into one, with proper renaming to avoid conflicts |
| 8 | +- Convert CBZ files to EPUB format |
| 9 | +- Process files in bulk with recursive directory scanning |
| 10 | +- Simple command-line interface |
| 11 | + |
| 12 | +## Installation |
| 13 | + |
| 14 | +### Pre-built Binaries |
| 15 | + |
| 16 | +Pre-built binaries for various platforms are available on the [Releases](https://github.com/DimazzzZ/cbz2epub/releases) page. |
| 17 | + |
| 18 | +### Building from Source |
| 19 | + |
| 20 | +#### Prerequisites |
| 21 | + |
| 22 | +- Go 1.18 or later |
| 23 | + |
| 24 | +#### Build Instructions |
| 25 | + |
| 26 | +##### Linux/macOS |
| 27 | + |
| 28 | +1. Clone the repository: |
| 29 | + ```bash |
| 30 | + git clone https://github.com/DimazzzZ/cbz2epub.git |
| 31 | + cd cbz2epub |
| 32 | + ``` |
| 33 | + |
| 34 | +2. Build the application: |
| 35 | + ```bash |
| 36 | + go build -o cbz2epub |
| 37 | + ``` |
| 38 | + |
| 39 | +3. (Optional) Install the application to your PATH: |
| 40 | + ```bash |
| 41 | + sudo mv cbz2epub /usr/local/bin/ |
| 42 | + ``` |
| 43 | + |
| 44 | +##### Windows |
| 45 | + |
| 46 | +1. Clone the repository: |
| 47 | + ```cmd |
| 48 | + git clone https://github.com/DimazzzZ/cbz2epub.git |
| 49 | + cd cbz2epub |
| 50 | + ``` |
| 51 | + |
| 52 | +2. Build the application: |
| 53 | + ```cmd |
| 54 | + go build -o cbz2epub.exe |
| 55 | + ``` |
| 56 | + |
| 57 | +3. (Optional) Add the directory to your PATH or move the executable to a directory in your PATH. |
| 58 | + |
| 59 | +## Usage |
| 60 | + |
| 61 | +### Basic Commands |
| 62 | + |
| 63 | +``` |
| 64 | +CBZ2EPUB - A tool for merging CBZ files and converting them to EPUB |
| 65 | +
|
| 66 | +Usage: |
| 67 | + cbz2epub -merge [-output filename.cbz] file1.cbz file2.cbz ... |
| 68 | + cbz2epub -convert [-output filename.epub] file.cbz |
| 69 | + cbz2epub -convert -recursive [directory] |
| 70 | +
|
| 71 | +Options: |
| 72 | + -convert |
| 73 | + Convert CBZ to EPUB |
| 74 | + -merge |
| 75 | + Merge multiple CBZ files into one |
| 76 | + -output string |
| 77 | + Output file name |
| 78 | + -recursive |
| 79 | + Process directories recursively |
| 80 | + -verbose |
| 81 | + Enable verbose output |
| 82 | +``` |
| 83 | + |
| 84 | +### Examples |
| 85 | + |
| 86 | +#### Merging CBZ Files |
| 87 | + |
| 88 | +Merge multiple CBZ files into a single file: |
| 89 | + |
| 90 | +```bash |
| 91 | +cbz2epub -merge -output merged.cbz chapter1.cbz chapter2.cbz chapter3.cbz |
| 92 | +``` |
| 93 | + |
| 94 | +If no output file is specified, the default name "merged.cbz" will be used: |
| 95 | + |
| 96 | +```bash |
| 97 | +cbz2epub -merge chapter1.cbz chapter2.cbz chapter3.cbz |
| 98 | +``` |
| 99 | + |
| 100 | +#### Converting CBZ to EPUB |
| 101 | + |
| 102 | +Convert a single CBZ file to EPUB: |
| 103 | + |
| 104 | +```bash |
| 105 | +cbz2epub -convert -output mycomic.epub comic.cbz |
| 106 | +``` |
| 107 | + |
| 108 | +If no output file is specified, the output filename will be derived from the input filename: |
| 109 | + |
| 110 | +```bash |
| 111 | +cbz2epub -convert comic.cbz |
| 112 | +# Creates comic.epub |
| 113 | +``` |
| 114 | + |
| 115 | +#### Bulk Conversion |
| 116 | + |
| 117 | +Convert all CBZ files in the current directory: |
| 118 | + |
| 119 | +```bash |
| 120 | +cbz2epub -convert -recursive . |
| 121 | +``` |
| 122 | + |
| 123 | +Convert all CBZ files in a specific directory and its subdirectories: |
| 124 | + |
| 125 | +```bash |
| 126 | +cbz2epub -convert -recursive /path/to/comics |
| 127 | +``` |
| 128 | + |
| 129 | +#### Verbose Output |
| 130 | + |
| 131 | +Add the `-verbose` flag to get more detailed output: |
| 132 | + |
| 133 | +```bash |
| 134 | +cbz2epub -convert -verbose -recursive /path/to/comics |
| 135 | +``` |
| 136 | + |
| 137 | +## License |
| 138 | + |
| 139 | +This project is licensed under the MIT License. |
| 140 | + |
| 141 | +## Contributing |
| 142 | + |
| 143 | +Contributions are welcome! Please feel free to submit a Pull Request. |
0 commit comments