Generates thumbnail for PDF file automatically after file is uploaded to the Media library.
You can also generate thumbnails for old PDF files that are already in the Media library – you can generate missing thumbnails or regenerate all thumbnails.
Imagick library must be installed on your server, otherwise this plugin will not work
- automated test after plugin activation to make sure it will work on your server
- works with all types of WordPress installations: domain, subdomain, subdirectory, multisite/network
- works on Apache and NGiNX
- automatically generate thumbnail for new uploaded PDFs
- (re)generate thumbnails for existing PDFs in Media library
- set maximum width of PDF thumbnail
- set maximum height of PDF thumbnail
- set image quality of PDF thumbnail
- set image file type of PDF thumbnail
Shortcodes
pdf_thumbnail
Maybe you want to display PDF thumbnail by using a shortcode
pdf_thumbnail_url
Maybe you want to display PDF thumbnail url by using a shortcode
?
Functions
get_pdf_thumbnail_url
If you want to return PDF thumbnail URL you can use
it works similar to wp_get_attachment_url and it will return something like
get_pdf_thumbnail_path
If you want to return PDF thumbnail URL you can use
it works similar to get_attached_file and it will return something like
get_pdf_thumbnail_image_src
If you want to return PDF thumbnail url, width and height you can use
it works similar to wp_get_attachment_image_src and it will return something like
get_pdf_thumbnail_image
If you want to return PDF thumbnail image tag you can use
it works similar to wp_get_attachment_image and it will return something like
?
Hooks
pdf_thumbnail_max_width
Maybe you want to change global PDF thumbnail max_width for a specific PDF file
pdf_thumbnail_max_height
Maybe you want to change global PDF thumbnail max_width for a specific PDF file
pdf_thumbnail_quality
Maybe you want to change global PDF thumbnail quality for a specific PDF file
pdf_thumbnail_type
Maybe you want to change global PDF thumbnail file type for a specific PDF file
pdf_thumbnail_bgcolor
Maybe you want to change default PDF thumbnail background for a specific PDF file
pdf_thumbnail_page_number
Maybe you want to PDF thumbnail page number for a specific PDF file
pdf_thumbnail_filename
Maybe you want to PDF thumbnail filename for a specific PDF file
pdf_thumbnail_imagick
Maybe you want to add watermark to PDF thumbnail for a specific PDF file
get_pdf_thumbnail_image_attributes
Maybe you want to change attributes for image tag from get_pdf_thumbnail_image function
pdf_thumbnail_generated
Maybe you want to do something after the thumbnail is generated

评论0