Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

How to Regenerate PDF Thumbnails in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Recently, one of readers users asked if it was possible to regenerate PDF thumbnails for old uploads in WordPress? In WordPress 4.7, you now have thumbnail previews for all new PDF files. However, this change does not affect older uploads. In this article, we will show you how to regenerate PDF thumbnails in WordPress for older uploads.

Regenerate PDF thumbnails for old uploads in WordPress

Why and Who Needs to Regenerate PDF Thumbnails?

WordPress introduced PDF thumbnail previews in WordPress 4.7. This feature creates image previews of the first page of a PDF file uploaded using media uploader.

However, this feature only works on new PDF files that you uploaded after updating your site to WordPress 4.7.

All older PDF files will still appear as a generic icon in the media library, and you will still have to use a PDF plugin to show a thumbnail preview on attachment pages.

If you regularly upload PDF files, then you will need to regenerate thumbnail for your older PDF uploads.

It is similar to regenerating thumbnails for images after adding new image sizes to your WordPress theme. However, those plugins do not support PDF files at the moment.

Having said that, let’s take a look at how to regenerate PDF thumbnails for older uploads in WordPress.

Regenerate PDF Thumbnails in WordPress

Before you move on, please make sure that you are using WordPress 4.7 or higher. Also make sure that you have imagemagick extension installed on your server.

You can test imagemagick by simply uploading a PDF file to your WordPress site. If it shows a thumbnail preview for your PDF file, then you are good to go.

Please note, that the plugin we are going to use in this article, will regenerate thumbnails for all your older image files as well. As a precaution, backup your WordPress site or at least backup your /wp-content/uploads/ folder.

First thing you need to do is install and activate the Force Regenerate Thumbnails plugin.

The plugin is hosted on GitHub. If you haven’t installed plugins from GitHub before, then take a look at our guide on how to install WordPress plugins from GitHub.

Upon activation, you need to visit Tools » Force Regenerate Thumbnails page.

Regenerate all thumbnails

Here you can regenerate thumbnails for all images and PDF files you uploaded using WordPress media uploader. Click on ‘Regenerate All Thumbnails’ button to continue.

The plugin will now start processing all images on your website. It will take some time, depending on how many images and PDF files you have.

Once finished, you can visit Media » Library page and you will be able to see thumbnail previews for your old PDF uploads.

Media library

The plugin also allows you to regenerate thumbnails for individual files. If you do not have many PDF files, then it would be better to regenerate thumbnails individually.

You will need to visit Media » Library page and switch to the list view by clicking on the list view button.

After that take your mouse over to a PDF file, and you will be able to see ‘Force regenerate thumbnails’ link.

Generating thumbnail for a single PDF file in WordPress

Clicking on the link will regenerate thumbnails for that particular file.

Once you have regenerated thumbnails for all your old PDF uploads, you can safely deactivate and delete the plugin. Uninstalling or deleting the plugin will not delete the thumbnails regenerated by the plugin.

We hope this article helped you regenerate PDF thumbnails for old uploads in WordPress. You may also want to see our list of 24 must have WordPress plugins for business websites.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

5 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      Thank you for letting us know, we will certainly take a look into updating this article.


  2. Bjarne says

    Be aware that the version of Force Regenerate Thumbnails from the WordPress Plugin repository does NOT work with old PDF files, but the version from github DOES work, even though they appear to have the same version number. Sort of a mess, but after all you should only have to generate thumbnails once.

  3. divp says

    PDF Thumbnails is the perfect companion to any of our PDF Embedder plugins, or can be used standalone! thanks for post

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.