How to Disable PDF Thumbnail Previews in WordPress
Works! Thanks for posting this. This will save storage on my server. I’ve been asking myself why wordpress is generating images from my pdf files. I use woocommerce and couldn’t figure this out until your post. I tried to disable a few plugins before I began to suspect that this was a wordpress update. The PDF preview images don’t work on woocommerce anyhow since the images are placed in a protected directory. Thanks.
How to Disable PDF Thumbnail Previews in WordPress?
With the WordPress version 4.7, automatically generated thumbnail previews of PDF documents that are uploaded from the WordPress media uploader was introduced. This is an extremely helpful feature for the majority of WordPress websites. However, many website owners already use PDF plugins that deal with thumbnail previews and the total display of the PDF downloads in the WordPress.
HostPapa Knowledge Base
If you’re using WordPress v4.7 or later, you’ll see an automatically generated thumbnail preview displayed when you upload a PDF file to a post or a page. While this is a great addition for most users, some admins may prefer to use a third-party plugin to perform the same task.
How to Set WordPress to Disable PDF Thumbnail Previews
PDFs can hold a plethora of different kinds of content, but sometimes that content is sensitive information. An automatically created thumbnail by default will show the first page as a thumbnail. Granted, most important documents are not posted on websites for anyone to view, but if you’re uploading your employee documents on the same website that your employees work on they may be able to see the important information they shouldn’t through a thumbnail. You must also be aware of the age of your users. If you are storing explicit adult content only suitable for mature audiences, a thumbnail of that content is not appropriate and should be hidden.
How to Regenerate PDF Thumbnails in WordPress
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.