
$ convert -page 1600x1200 input.jpg output.pdf If page dimension is larger than input image size, the image will be placed in lower left corner of a page. To specify the dimension of page (i.e., image canvas), you can use -page option of convert command. The convert utility also supports various transformations of input images before PDF conversion, as described in the following. Then each JPG file will be converted into one page of the multi-page PDF file. If you want to convert multiple JPG images to one PDF file with multiple pages: $ convert input1.jpg input2.jpg input3.jpg output.pdf The convert command will scale input image such that it will fit either page width or page height. For Debian/Ubuntu system: $ sudo apt-get install imagemagickįor CentOS/RHEL/Fedora system: $ sudo yum install imagemagickĪmong the utilities contained in ImageMagick package, a utility called convert can convert from JPG to PDF. Convert JPEG image file to PDF format using ImageMagickįirst, install ImageMagick on your system. If you would like to convert JPG image file to PDF format on Linux, you can use ImageMagic or GhostScript, both of which are free Linux software. Besides, the PDF format supports text search within PDF files using OCR, and can contain richer metadata than JPG format. This means that while the printing quality of JPG images depends on their pixel dimensions, PDF image files can print out exactly what you see on screen.

For one, while JPG is a raster format with lossy compression, PDF is a layout format that contains both vector and raster graphics. However, there are several advantages in using PDF images compared to JPG images. The JPG (JPEG) format is without any doubt the most popular format used to share images on the Internet.

How to convert JPEG image file to PDF format on Linux
