- install imageMagick
sudo apt-get install imagemagick
- in the command line:
- To convert JPG -> PDF:
convert input.jpg output.pdf
- To merge 2 image files in one pdf:
convert input_1.jpg input_2.jpg output.pdf
- to decrease the quality (and therefore the file size):
convert input_1.jpg -quality 90 output.pdf
- to resize the file:
convert input_1.jpg -resize 50% output.pdf
- to convert PDF -> image (it generates one image per PDF page)
convert input.pdf output.png
- To convert JPG -> PDF:
+ info/ source: