Sign inSign up

rappdw/ebook-convert

By rappdw

Updated almost 7 years ago

Calibre ebook-convert image

Image
0

694

rappdw/ebook-convert repository overview

ebook-convert

A docker image that converts ebook formats using Calibre ebook-convert.

Just run the sample script: (available in the git repo)

#!/usr/bin/env bash
set -e

if [ -f "$1" ]; then
  DIR=$(dirname "${1}")
  if [ "$DIR" == "." ]; then
    DIR=$(pwd)
  fi
  FN=${1##*/}
  EXT=${1##*\.}
  CVT_EXT=${2:-mobi}
  BOOK_NAME=${FN%.*}; docker run --rm -it -v "$DIR:/target" rappdw/ebook-convert "$BOOK_NAME.$EXT" "$BOOK_NAME.$CVT_EXT"
else
  echo "$1 does not exist. Please specify a valid file"
fi

Example:

convert-ebook ~/my-ebook.epub mobi

Tag summary

Content type

Image

Digest

Size

266.5 MB

Last updated

almost 7 years ago

docker pull rappdw/ebook-convert