Date: September 30, 2011 /  Author: Ralf Eichinger

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
 Tags:  topics linux

Previous
⏪ Spring WS PayloadRootAnnotationMethodEndpointMapping - One Interceptor config for all is not enough...

Next
Linux File Management ⏩