/Images_To_ePub

Convert a folder with images to an EPUB file. Great for photo albums, comics, and manga!

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

Images_To_ePub

Convert a folder with images to an ePub file. Great for photo albums, comics, and manga!

Run Images_To_ePub.py or _Gui.py to start a GUI. Select a folder, a file to save to and the name of the book (this is what most eBooks show as name).

The directory will be searched for image files (png,jpg,GIF) and every image will be added to the ePub file. The first image with the word "cover" somewhere in the name is used as the cover, but some readers will use the first page regardless of this. Every subfolder of the given directory will be a separate chapter in the book. You will not notice this while reading, but if you want to jump to another chapter you can use the table of contents. Images will appear before the images of sibling directories.

Some screens do not support color images, so this program has the option to turn all images into grayscale versions. The maximum resolution of the images can also be set, resulting in the resizing of images if needed. The original image files will not be changed.

This program can also run without a GUI. Run Images_To_ePub.py with the -h flag to get more info. You can also perform a batch operation by giving a list of directories (more than one directory) as arguments to Images_To_ePub.py.

Requirements

  • Python 3.6 or later
  • jinja2
  • Pillow

License

Please read the license. If you are lazy go to http://choosealicense.com/licenses/agpl/ and read the summary on the right.

If you have any ideas of how to make this code more awesome please let me know via the issue tracker!

Info about ePubs