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