/Fix-Kindle-Ebook-Cover

A script to fix damaged cover of Kindle ebook.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Fix-Kindle-Ebook-Cover

This is a tool to fix damaged ebook cover in kindle as below.

Detail: https://bookfere.com/post/986.html

Installation

Install Python (Required version >= 3.5) and clone or download this repository:

$ git clone https://github.com/bookfere/Fix-Kindle-Ebook-Cover.git

You can also use the single file package on Releases page if you do not want to install Python.

  • macOS 10.15 (Catalina) or newer.
  • Windows 10 (x64) or newer.

Usage

GUI version:

Double click fix_kindle_ebook_cover_gui.pyw (if you are using the single file package, open Fix Kindle Ebook Cover.app or Fix Kindle Ebook Cover.exe), choose a Kindle root directory, and click "Fix Cover" button.

CLI version:

Run the script fix_kindle_ebook_cover.py on terminal or cmd. It will automatically detect Kindle root directories:

$ python3 fix_kindle_ebook_cover.py

You can also specify one or more Kindle root directories:

$ python3 fix_kindle_ebook_cover.py /path/to/kindle
$ python3 fix_kindle_ebook_cover.py /path/to/kindle1 /path/to/kindle2

To delete orphan ebook covers, you can add an option -a clean.

Technical details

Most of the heavy lifting is done by other people's code, which is included in this repo:

  • Base code is from get-mobi-cover-image by Alex Chan. Used under GPL-3.
  • File.py is from KindleButler by Paweł Jastrzębski. Used under GPL-3.
  • DualMetaFix.py by K. Hendricks. Used under GPL-3.
  • KindleUnpack.py by M. Hannum, P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding. Used under GPL-3.

License

GPL v3.