user image

Published in : 2022-02-26

Issue with generating Thumbnails for PDF file format.


I am running one client's website on a Plesk server.

WordPress is not generating thumbnails for PDF files while uploading them from the TinyMCE editor or directly from the media manager. 

After searching more deeply, I tried Regerating thumbnails plugins for them, but it fails and still, the issue is not resolved.

I have installed magic, Ghostscript, and ImageMagick with all the latest versions.

Did I have a mismatch to the versions with my WordPress 5.8 website?

I am stuck up with this issue for the last 3 days, can someone get me out of this trouble?


Rakshit Date : 2022-03-06

Best answers


Best answers


Try with Ghostscript v8.70, ImageMagick  v6.5.7

Here WordPress was looking in /usr/bin for the Ghostscript executable. 

By default ./configure command (with no args) installed GS to /usr/local/bin location.

After installing GS to path /usr/bin instead, WordPress was finally able to generate PDF thumbnails!


In order to fix the issue hit below commands in a sequence,

Get latest GS 9.19 tar.gz

wget //

Unzip downloaded file,

tar -zxvf ghostscript-9.19.tar.gz

Navigate to the same directory after unzipping,

cd ghostscript-9.19
./configure --prefix=/usr
sudo make install

That's it. Hope this helps. 

Ref: with this thread

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Way to disable Block URLs for WordPress Posts
Publish date: 2022-02-26 | Comments: 2

Tag: Wordpress

Will Google Dorking save my secure WordPress website running on HTTPS?
Publish date: 2022-02-26 | Comments: 1

Tag: Wordpress

A custom WordPress Login page and URL
Publish date: 2022-02-10 | Comments: 2

Tag: Wordpress

How to display tags on each posts for customized wordpress theme?
Publish date: 2022-02-26 | Comments: 1

Tag: Wordpress

How to run wordpress with different themes in main domain and subdomain?
Publish date: 2022-03-01 | Comments: 1

Tag: Wordpress

Wordpress update button returns 404 [SOLVED]
Publish date: 2021-06-26 | Comments: 2

Tag: Wordpress

What is the best reference to the most used WordPress functions?
Publish date: 2022-02-09 | Comments: 2

Tag: Wordpress