View Single Post
Old 04-28-2012, 02:17 PM   #1
atordo
Connoisseur
atordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to behold
 
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
Image directory to epub

Don't know if this will be of use to somebody, but I've been toying with some comics I had to convert them to epub and come with a script to automate the task. It requires a sh compatible shell and Imagemagick tools (specifically convert).

Given a source directory with the original images in it, it will create a destination directory with images converted and an index.html. Open it in Sigil, edit metadata, select one of the images as cover and you're done.

You might want to adjust $geometry and convert options to those which better suit your reading device.

Of course a careful handcrafting will always produce better results (you might want to rotate the images, split them and whatnot), but at least the script provides a quick starting point.
Attached Files
File Type: txt imgdir2epub.sh.txt (714 Bytes, 231 views)
atordo is offline   Reply With Quote