Img2EPUB
Image to EPUB / PDF converter
A converter intended for imager extensions to EPUB or PDF, designed for ereaders.
Supported Formats
- PNG
- JPEG
- WEBP
- BMP
Installation
GitHub Repo
pip install pillow img2pdf
git clone https://github.com/22-Rendor/Img2EPUB.git
cd Img2EPUB
python3 img2epub.py
Usage
Created both a way to manage the program in both CLI and with a Graphical Interface
CLI
Creating an EPUB:
python img2epub.py [format] [directory] [options] | Formats |
epub | pdf | Directory |
\path\to\folder\ | Available Options |
Specifying properties of formatted file
Such as Saved Location or Title (Optional)
Formatted File output:
-o \path\to\updated\location\ || --output \path\to\updated\location\ Title (optional):
-t title || --title title Example:
Items inside \..\..\bookscans are png extenstions.
python img2epub.py epub "e:\media\books\bookscans" -o "d:\media\savedbooks" -t namedbook or
python img2epub.py epub "e:\media\books\bookscans" --output "d:\media\savedbooks" --title namedbook
Graphic Interface
Creating an EPUB:
Simple interface, just paste designated folder with images and convert :]
Additional Notes:
Original Purpose of making this:
I have an old kindle and love reading on it, but I don't enjoy buying books online when I already have a
library of books stored on my NAS. After jailbreaking my kindle, I had free rein to import my books. The
only issue was that some of the books I wanted to transfer were image scans such as manga that I normally
read using speciliazed software on my computer to make the pages display correctly.
I wanted an actually epub of the books, ones that I can use for my Kindle and other ereaders, regardless of
which device I am using.
Made this to convert most image extensions to ebook formats, making it easier to read.
IF there are any issues lmk, email me or find my twitter or IG idk. THKS.
-22