Skip to content

DanteGoffa/CFB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

CFB

Convert Folders to Books

What it does

  • Look only for directories containing images/book pages.
  • Fix page numbers.
  • Archive the folders with images to zip files
  • Remove original folders
  • Rename zip files to CBZ files.

Documentation

I had a folder structure of comic books and didn't feel like manually archiving each one. It only takes the folders that contains even a single image file and converts that folder. The filter can be extended if you want it to archive folders that contain different files.

Main Folder
├── FolderToConvert
│        ├── 01.jpg
│        ├── 02.jpg
│        └── ...
├── Folder
│        └── FolderToConvert
│                ├── Page01.png
│                ├── Page02.png
│                └── ...
└── Folder
        └── Folder
                └── FolderToConvert
                        ├── 1.jpg
                        ├── 2.jpg
                        └── ...

Fix Page numbering

If the filenames start out with 1.jpg, 2.jpg, ... but the amount of pages is that of 2+ digits. It will not order well for reading. The script looks at how many pages there are and if the pagenumbers are correct based on that.

It's very simple and I have only anticipated the problems I encountered so far. What it can fix:

(In case the page count is 2 digits.).
1.jpg --> 01.jpg
BookTitle-1.jpg --> BookTitle-01.jpg
BookTitle-Volume-1-1.jpg --> BookTitle-Volume-1-01.jpg

Rename to CBZ

You can change this or entirely remove this line of code if you don't need it to become a CBZ file.

About

Convert Folders to Books

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors