Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Media PDF Thumbnail

3,130 sites Security covered
View on drupal.org

This module generates a thumbnail image from a PDF file attached to a media entity. It replaces the default thumbnail with an image representation of the PDF, making it easier to preview PDF content within your media library.

The module provides an image field formatter for the thumbnail field of Media entities. The default thumbnail image will be replaced by an image generated from a pdf file referenced in any file field of the Media entity.

Prerequisite :
Imagick PHP extension (at least 6.3.7)
spatie/pdf-to-image library: composer require spatie/pdf-to-image.

Instructions :
Install as you would normally install a contributed Drupal module and enabled it.
Install spatie/pdf-to-image: composer require spatie/pdf-to-image

Usage :
See documentation for all details.

Versions details :
7.0.x
spatie/pdf-to-image 3.x
PHP >=8.2

6.1.x
spatie/pdf-to-image 2.1.x
PHP >=8.1

6.0.x => Deprecated (no more updates)

Activity

Total releases
12
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 12
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
6.1.9 Stable May 30, 2025
7.0.0 Stable May 30, 2025
6.2.2 Stable May 30, 2025
6.1.8 Stable May 30, 2025
6.2.1 Stable May 30, 2025
6.1.7 Stable May 30, 2025
6.2.0 Stable May 14, 2025
6.1.6 Stable May 14, 2025
6.2.0-rc2 Pre-release Feb 10, 2025
6.1.5 Stable Feb 10, 2025
6.2.0-rc1 Pre-release Feb 8, 2025
6.1.4 Stable Feb 8, 2025