• This repository has been archived on 31/Oct/2022
  • Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created about 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Manga processor for the Kindle e-book reader.

Mangle

Mangle is a cross-platform image converter and optimizer built for reading Manga on the Amazon Kindle and other E-ink devices written in Python. With this application you can easily:

  • Sort and organize images from different directories; bulk rename feature exists for output to the Kindle.
  • Optionally re-save images in a format Kindle will be sure to understand with no visible quality loss.
  • Downsample and rotate images for optimal viewing on Kindle, convert to grayscale to save space and improve contrast.
  • Automatically generate book meta-data so that your Manga is always properly detected and viewable in-order.

Motivation

Many years ago I received an Amazon Kindle as a gift. I immediately began playing around with it and reading about certain undocumented features that the Kindle has to offer. After a couple of hours I discovered it to be the perfect device for reading Manga is almost always grayscale, and the aspect ratio fits the Kindle's 600x800 pixel screen almost perfectly. Better yet, the Kindle's undocumented image viewer actually keeps track of the last image you viewed and thus you are always able to return to the page you left off on when you power on your Kindle. The device supports several popular image formats (jpeg, png, gif, etc), and is able to dither and downscale images to fit the screen.

However... The Kindle's image viewer does have certain shortcomings:

  • The Kindle is very picky about file format; any additional embedded data (thumbnails, comments, possibly even EXIF data) can confuse it. As a result, images may not display properly or even not at all (which actually prevents you from reading the given book, as one bad panel will prevent you from viewing subsequent images).
  • The first image that you view in a Manga (until the Kindle first writes the "bookmark" file) seems to be arbitrary even when files are named sequentially. About half the time it will correctly pick the first file in the batch, at other times it will pick out some other image seemingly at random.
  • Normally for Kindle to find your Manga scans you have to press Alt + Z on the home screen. I haven't always had luck with it correctly identifying image directories. At other times, after finding an image directory the Kindle will appear to hang while trying to access it (forcing you to return to the home screen).
  • The Kindle image viewer has no functionality to rotate images. So if there is a horizontally large image (such as what often happens with dual-page scans), it can be difficult to make out the text because the image is simply scaled to fit (consequently leaving a lot of wasted space at the bottom of the screen).
  • Scanlation images are oftentimes much larger than the 600x800 screen; not only does this make them take more space on your memory card but it also slows down image loading (the Kindle has to read more data off of the slow SD card and scale the image). Scanlations often also include color scans of covers and inserts which take up more space than a grayscale equivalent (which is would be fine for the Kindle's limited display).
  • Kindle's image viewer provides no way to sort images (to determine in which order they are shown). This can be very problematic especially considering that scanlation groups have differing naming conventions, and as a result files from later chapters may appear before earlier ones when you are reading your Manga (spoilers ftl).

Mangle was born out of my annoyance with these issues. The program name is a portmanteau of "Manga" and "Kindle"; I thought it was pretty clever at the time.

Usage

  1. Add the desired images and image directories to the current book.
  2. Re-order the images as needed (files pre-sorted alphabetically).
  3. Configure the book title and image processing options.
  4. Create a root-level directory on your Kindle called pictures (case sensitive).
  5. Export your images, selecting the pictures directory you just created.
  6. Enjoy your Manga (if it doesn't show up, press Alt + Z while on the home menu).

Dependencies

Installation

Pre-built binaries are available for download from the project's releases page.

More Repositories

1

anki-connect

Anki plugin to expose a remote API for creating flash cards.
Python
1,742
star
2

yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
JavaScript
1,053
star
3

vim-argwrap

Wrap and unwrap function arguments, lists, and dictionaries in Vim
Vim Script
301
star
4

homemaker

Efficiently manage your dot-file configuration settings.
Go
233
star
5

zero-epwing

Sane data exporter for an insane dictionary format.
C
93
star
6

yomichan-import

External dictionary importer for Yomichan.
Go
78
star
7

md2vim

Tool for automatically converting markdown to vimdoc format
Go
75
star
8

yomichan-anki

Plugin for sentence/vocab mining Japanese books in Anki.
Python
56
star
9

goldsmith

Static pipeline-based website generator written in Go.
Go
35
star
10

metacall

Cross platform C++ template-based IPC library.
C++
10
star
11

jmdict

Go
8
star
12

lazarus

Modern reimplementation of the Diablo 2 engine.
Go
8
star
13

vfs

Simple versioning file system created for Linux with FUSE.
Go
6
star
14

eb

C
5
star
15

tetrys

Simple Tetris clone written in Python.
Python
5
star
16

restaurant-search

Experiments in semantic search.
Go
4
star
17

mdview

Tool to view Github Flavored Markdown files in your web browser.
CSS
4
star
18

scrawl

Command line CSS selector-based web scraper and downloader.
Go
3
star
19

dotvim

Vim configuration files
Lua
2
star
20

hlm2-wad-extract

Asset extractor for Hotline Miami 2 WAD files.
Python
2
star
21

guid.nvim

Simply common operations when working with GUIDs in Neovim
Lua
2
star
22

goldsmith-components

Set of core plugins to extend Goldsmith functionality.
Go
2
star
23

argonaut.nvim

Lua
1
star
24

revolver.nvim

Lua
1
star
25

ankijoy

Gamepad plugin for Anki 1.x
Python
1
star