pxkw.hatenadiary.com

めもめも

How to create .mobi after scanning images

Requirements

  • convert # by imagemagic
  • pdftk
  • ebook-convert # by calibre

Convert each image into pdf

for file in `ls *.jpg`; do
  convert $file ${file%jpg}pdf;
done;

Integrate the pdfs

pdftk *.pdf cat output integ.pdf

Convert pdf to mobi

ebook-convert integ.pdf .mobi