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.
|