Linux File Conversion
Installation
ImageMagick
$ sudo apt install imagemagick
Djvu
$ sudo apt install djvulibre-bin
PDF to JPG/PNG
Use convert
from ImageMagick:
$ convert Das_Weltall.pdf Das_Weltall.jpg
or
$ convert Das_Weltall.pdf Das_Weltall.png
JPG to PDF
$ for i in *.jpg; do convert $i $i.pdf; done
DJVU to TIFF
When using an indirect djvu file, use the name of the index file:
$ ddjvu -format=tiff Weltall\ u.\ Menschheit\ 1.djvu Weltall_u._Menschheit_1.tif
TIFF to JPG
TIFF containing only one picture
$ for i in *.tif; do convert "$i" "$i.jpg"; done
TIFF containing multiple pictures
$ convert -separate example.tif example.jpg