Hazel and Kindle Comic Converter Automation for Kindle Reading

ExcitingI like to read comics on the go, and there is no easier way to tote them than on a Kindle. The preferred tool of people who like to convert comics for kindle reading is Kindle Comic Converter. It has a nice GUI interface and after conversion from .cbr or .cbz to .mobi format, you can e-mail it to your kindle. This works great for most readers, but I prefer a more automated method for getting comics comverted and onto my kindle. As soon as a comic (.cbr or .cbz) file is downloaded or placed in a specified directory, with no more action on my part, it is automatically converted to .mobi format and e-mailed to my kindle.

This guide is for Mac users that have Hazel installed. If you own a Mac and aren’t using Hazel, you are denying yourself the true power of Mac automation. I highly recommend it. Assuming you have a Mac and you have Hazel installed, let’s begin.

THE STUFF WE HAVE TO DO BEFORE THE FUN HAPPENS:

Install homebrew, python 3, and KCC dependencies:

Depending on what version of macOS you are using and what you may or may not have installed previously, your mileage may vary on this first part. It may require some tweaking, googling, etc. I have tried to include as much info as possible to at least give you a frame of reference for what needs to be done before we can use the command line Kindle Comic Converter.

Open Terminal
mkdir KCC-Process
cd KCC-Process

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

brew update
brew install python3
brew linkapps python3
pip3 install –upgrade pip setuptools
brew install psutils *OR* pip install psutil
brew install slugify *OR* sudo pip install python-slugify
brew install homebrew/python/pillow *OR* pip install Pillow
brew install unrar
cd other/osx
sudo cp unrar /usr/local/bin (so KCC can find it)
brew install homebrew/binary/kindlegen

NOW THE FUN STUFF:
The conversion will take place in the using the Kindle Comic Coverter command line tool, so download the KCC package from GitHub (https://github.com/ciromattia/kcc/). Unzip the package into KCC-Process directory.

Set your hazel rule for the KCC-Process directory.

Hazelrule

Your shell script will look like this. I am using the KV (Kindle Voyage) profile.

FULL_PATH=”$1″
ORIG_FILE=$(basename “$FULL_PATH”)
python3 kcc-c2e.py –profile KV “$ORIG_FILE”

Now any cbz or cbr file dropped into the KCC-Process directory will be converted to .mobi format ready for your Kindle. If you want to automate the next step of e-mailing the .mobi file to your Kindle, you need to create an Automator script like this.

Automatoremail

Then add the script execution to a Hazel rule. You can have the rule activate in the KCC-Process directory or you can do as I do, and move the newly created .mobi from KCC-Process to a directory called Kindle-eMail where this Hazel rule will e-mail the .mobi to your Kindle of choice.

Hazelmail

If you want more ideas or guidance on using Hazel, I recommend David Sparks’ Hazel Field Guide.

Leave a Reply

Your email address will not be published. Required fields are marked *