Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active June 16, 2016 06:54
Show Gist options
  • Save stefanschmidt/235061c8af36125530fa to your computer and use it in GitHub Desktop.
Save stefanschmidt/235061c8af36125530fa to your computer and use it in GitHub Desktop.
Convert a DJVU document to numbered PNG images
# depends on djvulibre and graphicsmagick compiled with libtiff support (available via Homebrew)
ddjvu -format=tiff doc.djvu img.tiff
gm convert img.tiff +adjoin img%03d.png
@nemilya
Copy link

nemilya commented Jun 16, 2016

For Ubuntu:

# ddjvu
sudo apt-get install djvulibre-bin
# gm
sudo apt-get install graphicsmagick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment