foosoft.net

Mangle

A couple of weeks 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. After a couple of hours I discovered it to be the perfect device for reading Manga. Manga is almost always grayscale, and the aspect ratio of most scanlations 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:

I was annoyed with these issues and thus Mangle was born (the program name is a mix of "Manga" and "Kindle" in case you haven't figured it out yet; I thought it was pretty clever at the time). Fortunately you can get all the benefits of my work without really doing anything (and it won't even cost you anything since Mangle is free, GPL software). With Mangle you can easily:

Mangle is also cross platform, and doesn't require an install (it's a standalone executable that you can run from anywhere). It is also "environmentally friendly" by not messing with your registry or modifying your system in any way. If you ever want to uninstall it, just delete the executable and you're done.

Usage Instructions

Mangle is pretty easy to use, so this won't be really in-depth. If you have any questions drop me a line though.

  1. Add images to the current book by selecting the "Book | Add | Files" or "Book | Add | Directory" menu items
  2. If certain images are not in the order you want, select them in the window, and select the "Book | Shift | Up" or "Book | Shift | Down" menu items
  3. Configure the book title and image processing options by selecting "Book | Options"; this will be the title you see in the Kindle home menu
  4. Create a root-level directory on your SD memory card/Kindle called "pictures" (case might matter)
  5. Once you are satisfied with the your images and options select "Book | Export" and select the "pictures" directory you just created
  6. After the export is complete your new manga books will show up along with all your other books (if they don't for some reason, press Alt+Z while on the home menu)

The Kindle 2 Image Viewer Bug

I've received a couple of reports (and found similar stories on the web) about an annoying bug some owners of Kindle 2 are experiencing. Apparently under certain conditions the Kindle 2 image viewer (which Mangle leverages) will not properly update the display when you flip between picture pages. If this starts happening to your Kindle 2 then you can fix it by performing a reset (holding power button down for 15 seconds). This problem is described in more detail in this forum thread. I don't own a Kindle 2 myself but have used one for viewing manga before with no problem; maybe this notice will be of help to those who run into this issue.

A Disclaimer...

You probably know how this goes by now... Mess around with your Kindle at your own risk. Honestly, nothing bad is going to happen; however if something does then it's your problem.

Downloads (Version 1.1; 2/28/2009)

The Windows binaries and source code for the latest version of Mangle can be found below. You can also download older versions if you like.

Building on Linux

Mangle was initially developed on Xubuntu 8.10 and it's really simple to set up a build environment. If you are running an *buntu variant (although this will probably also work with all Debian based distributions), install the following packages (using apt-get):

After you install these packages, simply open up a console to where you extracted the Mangle source code and type make CFG=RELEASE, and you're done (the executable will be created in the ./bin/Release directory)! If you run into any problems building Mangle don't hesitate to ask.

Screenshots

windows version

Running on Windows XP.

linux version

Running on Xubuntu 8.10.

options dialog

Book options dialog.

manga on kindle 1

Manga + Kindle + Mangle = Win

manga on kindle 2

Sweet, it works on Kindle 2 as well!

(Photo courtesy of Pashonic)

manga on kindle dx

Kindle DX, what a big screen you have!

(Photo courtesy of Chris)