This article will be showing you how to convert the pages of a PDF document to image files (PNG, JPEG, and others) using the GIMP tool in Linux.
GIMP is a free, open-source, fully-featured image editing tool, available for Windows, Linux, Mac OS X, and other platforms. It can export pages of PDF documents to various image formats, including PDF, JPEG, TIFF, BMP, and many others.
These instructions explain how to use GIMP to convert PDF for those that prefer to use a graphical application to accomplish the task. GIMP exports PDF pages one by one therefore requires a plugin to export all pages automatically.
First of all, if you don’t already have GIMP, you will need to install it using our following article:
On Fedora distribution, you can install GIMP, simply using the following commands.
$ sudo dnf install snapd $ sudo ln -s /var/lib/snapd/snap /snap $ sudo snap install gimp
Once installed follow the instructions below.
Convert PDF to Image using GIMP in Linux
First, we will start by converting one or a few PDF pages to PNG. This does not require adding any plugins to GIMP.
Click on the GIMP File menu, select Open, and choose the PDF file you want to convert. You will see an ‘Import from PDF’ dialog box. Set the Open pages option as Layers, and select Import.
In the GIMP layers dialog, scroll to the page you would like to convert from PDF to image. Drag the selected page with your mouse cursor to the top so it’s the first layer.
Next, click on the GIMP File menu, and select Export As. Now you can change the filename extension to the preferred image format by editing the name field at the top of the export dialog or click Select File (By Extension) at the bottom of the dialog.
You can also select where you wish to save your image on your computer in the Save in Folder section at the top of the dialog. Finally, click the Export button to save the file in the image format that you chose.
GIMP will pop up a dialog to make changes to your images such as compression level and image quality.
Hopefully, you can now convert your PDF docs to images in Linux using the GIMP application.