WordPress plugin intelligence profile

PDF-Preview inside File-Block

Extends the core/file block to optionally insert a PDF preview image (generated by WordPress) before the file block and adds linking/lightbox options.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.2.3
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.9 · PHP 8.0
Directory statusactive
Last directory update27 Oct 20266d ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records PDF-Preview inside File-Block version 1.2.3 as active, updated 6d ago and tested up to WordPress 7.1.

Overview

About this plugin

Did you know that WordPress generates a thumbnail image file when uploading a PDF-file? This works when the PHP Extension imagick and Ghostscript is available! It won’t work with GD library!

You know they are present and it’s working, when you upload a PDF-file in the media library and you immediately see a thumbnail of the file. Now that thumbnails are available my plugin hooks into the Gutenberg file-block to automagically inserting that thumbnail right before the file block. Besides that it also provides some more options:

Plugin Features

✔ a toggle to insert an preview image before the file block

✔ a toggle to link the preview image with the “link to” settings value of the file block

✔ a toggle to link the preview image with itself to the full-size image

✔ a toggle to enable the Lightbox-Effect on the preview image (enable in settings)

✔ a setting to choose the size of the preview image: thumbnail, medium, large

✔ a settings page to define default for image size and show inline embed default value and a height in pixels default value

✔ when activating the plugin, the show inline embed option of the file block gets disabled by default

✔ the preview image link target is based on setting of file-block ( open in new tab )

✔ adds new block styles to file block with just a few inline css code

✔ this plugins main goal is to be very lightweight and avoid loading any additional assets and saving DOM performance. It just uses 3 files.

This plugin requires imagick and Ghostscript! A good WordPress web hosting has it installed by default.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • blocks
  • file
  • gutenberg
  • lmdm
  • pdf
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.9 · PHP 8.0
Update activity27 Oct 20266d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.2.11.2.3
WordPress compatibility7.0.47.1.4
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.