Git Product home page Git Product logo

cbxmanager's Introduction

CbXManager

Easily create/extract cbz or cbr files with a python script, can split and adapt to manga read order

Notes

There are two tools here:

pip install --no-deps -r requirements.txt

CbXManager Purpose

I need to manage book or images and sometimes I need to deal with the folder and another with the cbz file. CbXManager can guess the input and:

If the input is a folder -> it will create a cbz If the input is a cbz it will extract it

I added some options: like splitting the wide images in two and reverse the read order to adapt to manga.

Example

myFolder/image1.jpg
         image2.jpg
         image3.jpg
         image4.jpg

When running the foolowing command:

python cbxmanager.py myfolder/

We will have:

myFolder/image1.jpg
         image2.jpg
         image3.jpg
         image4.jpg
myFolder.cbz

And inside myFolder.cbz are all the images.

And if I run:

python cbxmanager.py myfolder.cbz

It will extract the cbz to the original folder.

Options

  • -c option to cut the image in two parts
    • -r reverse the lecture order (only when -c is used else ignored)
  • -v verbose mode activated

regroupImages Purpose

regroupImages will parse a folder and it's direct subfolders to create volumes of around 170 images (by default).

It will first finish the current folder before finishing the Volume:

Example:

myFolder/chapter01/image1.jpg
                   ...
                   image100.jpg
myFolder/chapter02/image1.jpg
                   ...
                   image100.jpg
myFolder/chapter03/image1.jpg
                   ...
                   image100.jpg

Command:

python3 regroupImages.py --delete /path/to/myFolder/

Will result in:

Vol 01.cbz (200 images inside: chapter 01 & 02)
Vol 02.cbz (100 images inside: chapter 03

Options

  • --delete delete the folders/images as they are put in the .cbz
  • --limit change the 170 that is an empirical value that is working well for me.

Notes

It can only generate cbz and does not do the complicated things that cbxManager do.

cbxmanager's People

Contributors

lightjohn avatar

Stargazers

gaspardruan avatar Chase avatar Sebastian Hitz avatar Chris van den Berg avatar  avatar cailong avatar  avatar  avatar  avatar  avatar Citizen1 avatar  avatar Syed Peer avatar layton avatar  avatar Diego avatar K4Z avatar TuanBinh avatar  avatar  avatar Evgeniy Sevostyanihin avatar TurBoss avatar  avatar  avatar Harry Gallagher avatar  avatar  avatar Adam Hernandez avatar Jordan Marques avatar Jeremy Douglass avatar Open Source Construction avatar  avatar

Watchers

Jeremy Douglass avatar James Cloos avatar  avatar

cbxmanager's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.