Hack to convert your word document to kindle (with images)

kindle_logo

Amazon Kindle is quite flexible. But my Ebola book had 82 images, and I wasn’t about to re-import each one using the [ Menu | Picture | Insert | From File… ] command that Amazon publishing requires. Instead, I converted it to a “web page” in HTML format and used a free editor called Notepad++ to hack all the images at once. It works everytime.

The 5 minute word doc hack for Kindle

Note: I tested this on Word 2000.

one

Save a copy of your ebook manuscript in HTML format.

Don’t throw away the old version – you’ll want to use the word doc to make edits in the future. The HTML version the copy for Amazon, but disposable afterwards.

two_2

Move the HTML file to the folder of the same name.

If your book was called “Cooking with Martha” then you’ll find a sub-folder wherever you saved it called, “Cooking with Martha” with all of your images.

three

Use notepad to remove the paths to your images in the HTML file.

notepad-plus-plus-iconNotepad++ is my favorite choice but Windows default ‘notepad’ editor will also work. Open your file. Search (Ctrl-F) for ‘src=”‘ and file the path to your images. It will be something like “./cooking with martha/image001.png”.

Next, press Ctrl-H to bulk-replace every instance of that path with nothing. It will look like this:

bulk-replace-notepad-plus

Note that spaces in your title are replaced with %20s. That means ‘space’ in HTML. Remove everything between the src=” and the image01.gif” part of the code. This is what causes your images to break when you upload a word document to Amazon. You’re almost done.

four

Add all the files in your sub-folder to a ZIP file and upload to Amazon.

Be sure to preview your book and confirm that the images are showing up. IF you get a box with an X in the middle, Amazon did not find the image. It should find the image if it was included in your zip file and the name matches what was in the html file exactly.

The next hack I recommend is making your table of contents link to the chapters in your book. The short version is that you can use Word’s built-in [ Insert | Table of Contents ] so long as the chapter titles are “heading 1” elements, and not just paragraphs with larger fonts. Instructions on that here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s