Skip to content

Convert and format CBR / CBZ file to CBZ file with right format

License

Notifications You must be signed in to change notification settings

Romaixn/cbz-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 CBZ Converter

Go version License GitHub Release

✨ Features

  • 🔄 Converts CBR files to CBZ format
  • 🔢 Renames image files with leading zeros for proper sorting
  • 🗜️ Recompresses CBZ files for optimized storage
  • 🚀 Processes multiple files concurrently for speed
  • 🧹 Automatic cleanup of temporary files

🛠️ Installation

  1. Ensure you have Go 1.23 or later installed on your system.
  2. Clone this repository:
    git clone https://github.com/Romaixn/cbz-converter.git
    
  3. Navigate to the project directory:
    cd cbz-converter
    
  4. Build the project:
    go build -o cbz-converter
    

🚀 Usage

  1. Place the cbz-converter executable in the directory containing your CBR/CBZ files.
  2. Run the program:
    ./cbz-converter
    
  3. The tool will automatically process all CBR and CBZ files in the current directory.

🎭 How It Works

  1. 📂 Scans the current directory for CBR and CBZ files
  2. 📤 Extracts the contents of each archive
  3. 🔢 Renames image files with leading zeros (e.g., 1.jpg → 001.jpg)
  4. 🔄 For CBR files: Creates a new CBZ archive and deletes the original CBR
  5. 🗜️ For CBZ files: Recompresses the archive with the renamed files
  6. 🧹 Cleans up temporary extraction directories

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.

Happy comic reading! 📚🦸‍♂️🦸‍♀️

About

Convert and format CBR / CBZ file to CBZ file with right format

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages