
前言介紹
- 這款 WordPress 外掛「Rapls PDF Image Creator」是 2026-01-01 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-02-20,距離現在已有 5 天。
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
rapls |
外掛標籤
pdf | image | media | thumbnail | featured image |
內容簡介
<h3>文章總結:</h3>
<ul>
<li>Rapls PDF Image Creator在將PDF文件上傳到WordPress媒體庫時自動生成縮略圖影像。</li>
<li>這個外掛使用ImageMagick(Imagick PHP擴展)將PDF的第一頁轉換為影像。</li>
</ul>
<h3>問題與答案:</h3>
<ol>
<li>
<strong>如何生成PDF文件的縮略圖?</strong>
<ul>
<li>將PDF文件上傳到媒體庫。</li>
<li>外掛會自動將第一頁轉換為影像。</li>
<li>該影像會被註冊為PDF的特色圖片。</li>
<li>使用短代碼或模板功能來顯示縮略圖。</li>
</ul>
</li>
<li>
<strong>外掛生成什麼樣式的文件?</strong>
<ul>
<li>my-document.pdf上傳後,外掛會創建:</li>
<li>my-document-pdf.jpg(完整封面圖像)</li>
<li>my-document-pdf-1024x768.jpg(大)</li>
<li>my-document-pdf-300x225.jpg(中)</li>
<li>my-document-pdf-150x150.jpg(縮圖)</li>
<li>根據您的主題設置添加其他大小。 </li>
</ul>
</li>
<li>
<strong>如何使用模板功能顯示PDF縮略圖?</strong>
<ul>
<li>在主題中顯示PDF縮略圖:</li>
<li>設置$ pdf_id = 123;</li>
<li>如果(rapls_pic_has_thumbnail($ pdf_id)){</li>
<li>echo rapls_pic_get_thumbnail_image($ pdf_id,'medium'); //顯示中尺寸圖像</li>
</ul>
</li>
</ol>
原文外掛簡介
Rapls PDF Image Creator automatically generates thumbnail images when you upload PDF files to your WordPress Media Library. The plugin uses ImageMagick (Imagick PHP extension) to convert the first page of a PDF into an image.
Key Features
Automatic Generation – Thumbnails are created instantly when PDFs are uploaded
Featured Image Support – Generated thumbnails are automatically set as the PDF’s featured image
Multiple Sizes – Images are generated in all registered WordPress image sizes
Media Library Integration – Display thumbnails instead of default PDF icons
Editor Integration – Insert PDF links with thumbnail images into your posts
Bulk Generation – Generate thumbnails for all existing PDFs at once
Flexible Output – Choose from JPEG, PNG, or WebP formats
How It Works
Upload a PDF file to the Media Library
The plugin automatically converts the first page to an image
The image is registered as the PDF’s featured image
Use shortcodes or template functions to display the thumbnail
Generated Files
When you upload my-document.pdf, the plugin creates:
my-document-pdf.jpg (Full size cover image)
my-document-pdf-1024×768.jpg (Large)
my-document-pdf-300×225.jpg (Medium)
my-document-pdf-150×150.jpg (Thumbnail)
Additional sizes based on your theme settings
Shortcodes
[rapls_pdf_thumbnail id="123"] – Display thumbnail image
[rapls_pdf_thumbnail_url id="123"] – Output thumbnail URL
[rapls_pdf_clickable_thumbnail id="123"] – Thumbnail linked to PDF
[rapls_pdf_download_link id="123"] – Download link with thumbnail
Template Functions
rapls_pic_get_thumbnail_url( $pdf_id, $size ) – Get thumbnail URL
rapls_pic_get_thumbnail_id( $pdf_id ) – Get thumbnail attachment ID
rapls_pic_get_thumbnail_image( $pdf_id, $size, $attr ) – Get thumbnail HTML
rapls_pic_has_thumbnail( $pdf_id ) – Check if PDF has thumbnail
rapls_pic_generate_thumbnail( $pdf_id, $force ) – Generate thumbnail
Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
ImageMagick with Imagick PHP extension and PDF support
Most shared hosting providers have ImageMagick available. Check the Status tab in plugin settings to verify your server meets the requirements.
Using Template Functions
Display a PDF thumbnail in your theme:
$pdf_id = 123;
if ( rapls_pic_has_thumbnail( $pdf_id ) ) {
echo rapls_pic_get_thumbnail_image( $pdf_id, 'medium' );
}
Link thumbnail to PDF file:
$pdf_id = 123;
if ( $thumbnail_id = get_post_thumbnail_id( $pdf_id ) ) {
echo '';
echo wp_get_attachment_image( $thumbnail_id, 'medium' );
echo '';
}
Display All PDFs Attached to a Post
$pdfs = get_posts( array(
'post_type' => 'attachment',
'post_mime_type' => 'application/pdf',
'post_parent' => get_the_ID(),
'posts_per_page' => -1,
) );
foreach ( $pdfs as $pdf ) {
if ( rapls_pic_has_thumbnail( $pdf->ID ) ) {
printf(
'%s',
esc_url( wp_get_attachment_url( $pdf->ID ) ),
rapls_pic_get_thumbnail_image( $pdf->ID, 'thumbnail' )
);
}
}
Available Filter Hooks
rapls_pdf_image_creator_thumbnail_page – PDF page to use (default: 0)
rapls_pdf_image_creator_thumbnail_max_width – Maximum width
rapls_pdf_image_creator_thumbnail_max_height – Maximum height
rapls_pdf_image_creator_thumbnail_quality – Image quality (1-100)
rapls_pdf_image_creator_thumbnail_format – Output format
rapls_pdf_image_creator_thumbnail_bgcolor – Background color
rapls_pdf_image_creator_thumbnail_image_attributes – Image tag attributes
rapls_pdf_image_creator_custom_insert_html – Custom insert HTML
rapls_pdf_image_creator_hide_thumbnails_in_library – Hide in Media Library
Available Action Hooks
rapls_pdf_image_creator_before_generate – Before thumbnail generation
rapls_pdf_image_creator_after_generate – After successful generation
rapls_pdf_image_creator_generation_failed – When generation fails
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Rapls PDF Image Creator」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.6 | 1.0.7 | 1.0.9 | trunk | 1.0.7.1 | 1.0.9.1 | 1.0.9.2 |
延伸相關外掛(你可能也想知道)
Regenerate Thumbnails 》重新生成縮略圖插件可以讓您為已上傳到媒體庫的一個或多個圖像重新生成所有縮略圖大小。, 這對以下情況很有用:, , 您新增了新的縮略圖大小,並且您希望過去...。
Force Regenerate Thumbnails 》『Force Regenerate Thumbnails』可以讓您刪除所有舊圖像大小,並確實重新生成上傳圖像的縮略圖。, 在「工具」管理員選單中從頭開始生成所有縮略圖,或透過媒...。
XO Featured Image Tools 》此外掛可以自動從文章中的圖片產生特色圖片。, 功能, , 一次性產生所有文章的特色圖片。, 在儲存文章時自動產生特色圖片。, 批次刪除文章的特色圖片。, 於文...。Conditionally display featured image on singular posts and pages 》注意事項, 如果你的佈景主題使用自訂調用來載入特色圖片(如 Twenty Seventeen 主題),則本外掛可能無法運作!請使用 get_the_post_thumbnail()、wp_get_att...。
AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
Featured Image Admin Thumb 》啟用此外掛後,它會在「所有文章/所有頁面」及支援的所有自訂文章類型管理介面中新增一欄,名為「Thumb」。這一欄會顯示文章特色圖片或者是文章縮圖的縮略圖...。
Videopack 》一個外掛,用於製作視頻播放器、縮略圖、多個分辨率和視頻庫。, 這個視頻外掛可以將各種選項添加到上傳到 WordPress 媒體庫的任何視頻。如果您的瀏覽器原生支...。
PDF Image Generator 》這個外掛可以透過上傳 PDF 附件,將封面轉換為 JPEG,並作為文章縮略圖檔案附加。它還允許顯示縮略圖標誌和插入 PDF 鏈接與封面圖像到編輯器。, , 僅支援 Wor...。
Kama Thumbnail 》這個外掛可以方便地在不增加負擔的情況下即時建立文章縮圖,是 "thumbnail.php" 腳本的最佳替代品。, 支援多站點。, 使用方法, 這是針對開發人員的外掛,安裝...。
Advanced Random Posts Widget 》注意事項, 此外掛已不再支援,請使用 Recent posts widget Extended 取代。, 此外掛提供更彈性和進階的隨機文章列表功能。您可以透過縮略圖、摘要和文章日期...。
Manual Image Crop 》此外掛允許您手動裁剪 WordPress 佈景主題中註冊的所有圖片尺寸(特別是特色圖片)。, 只需點擊您媒體庫中任何圖片旁邊的“裁剪”連結。, 將顯示...。
Get the Image 》「Get the Image」是 WordPress 中最先進的縮略圖 / 圖片外掛之一。, 從小型博客到大型企業級解決方案 (如WordPress.com VIP),此插件適合所有人使用。它之所...。Easy Add Thumbnail 》註: 此外掛功能由超過 10,000 個活躍的安裝保證。但在安裝此外掛之前請注意,它的唯一目的是將功能影像識別碼 (使用 WP 編輯器相同的方式) 添加到您的文章中...。
OTF Regenerate Thumbnails 》這個外掛與 Regenerate Thumbnails 差不多,不過圖片會在使用時自動調整大小。一旦圖片生成後,便不會再處理。, 只要以下條件改變,縮略圖就會自動改變大小:...。
Thumbnail Upscale 》此外掛可使小型媒體附件的縮圖進行放大。 WordPress 的預設行為是不放大小圖像,這意味著您無法保證縮圖格式的大小。此外掛可修正該問題並將小圖像放大到指定...。
