Found Image http://plugins.svn.wordpress.org/pdf-image-generator/assets/icon-128x128.jpg PDF Image Generator | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
90%
4.5 Stars (19 votes)

Home

WP.Org

ReadMe

Support
  • Author:
    Mizuho Ogino
Version: 1.5.6
Requires: WP 4.0
Last Updated:3318 days ago
Downloads:112591
Installations: 8,000+
Tags:
    Attachment, convert, embed, image, jpg, pdf, png, thumbnail, upload, viewer
Download Plugin Package

PDF Image Generator

Released on January 14, 2015.
Download Plugin Package

Version: 1.5.6

Generate automatically cover image of PDF by using ImageMagick. Allow user to insert PDF link with thumbnail into editor and set as Featured Image.

  • Description
  • Changelog
  • Installation


By uploading a PDF attachment, this plugin convert the cover page to jpeg and attach it as a post thumbnail file. It also allows displaying a thumbnail icon and inserting PDF link with a cover image into the editor.

Available only for WordPress 4.0+, also only on the server which ImageMagick and GhostScript are installed.

This plugin hooks to the media editor and generates the first page image of PDF by using ImageMagick with GhostScript. It requires no setup, just activate the plugin via the admin install page. Allow to set a PDF as an image.

How it works

This Plugin replaces and extends the following features.

  • Generate cover image of PDF by using ImageMagick. Generated Image has different size variations and is attached to PDF.
  • Register Generated Image as Featured Image (post-thumbnail) of PDF.
  • Display Generated Image as icon instead of Mime-type Icon in Admin Page.
  • Hide Generated Image file itself in Media Library. (v1.2 or later)
  • Replace link text with JPG when inserting PDF to Text Editor.
  • Delete Generated Image when deleting PDF from Media Library.
  • Allow to manage and output Generated Image and PDF on manually in template file. (see Other Notes.)
  • Allow to set PDF as Featured Image and to use functions in the same way as image file. (v1.2 or later, see Other Notes.)
  • Allow to control maximum size of Generated Image and other default settings in Plugin Page. (v1.3.4 or later)

Generated Items

A generated image file is registered as post children of a PDF file and it has different size variations. Files build a tree like below.

  • my-file.pdf (Your PDF)
    • my-file-pdf.jpg (Generated Cover Image of Your PDF)
      • my-file-pdf-1024x768.jpg (Large Size)
      • my-file-pdf-300x225.jpg (Medium Size)
      • my-file-pdf-150x150.jpg (Thumbnail size)
      • ...(And Your Custom File Sizes)

Insert HTML into the editor

Select a PDF file in the Media Uploader and insert it into the the editor. An output HTML is automatically rewritten like below.

<a class="link-to-pdf" title="dummy-pdf" href="http://exmaple.com/wp-content/uploads/2015/01/dummy-pdf.pdf" target="_blank"><img width="227" height="320" class="size-medium wp-image-9999 thumb-of-pdf" src="https://exmaple.com/wp-content/uploads/2015/01/dummy-pdf-pdf-227x320.jpg" alt="thumbnail-of-dummy-pdf" /></a>

*If you are using a document viewer plugin (like GDE) and want insert html which is made by it, select "Default (Title)" of "media" selector.

1.5.6

25.Apr.2017. Fixed Undefined index message.

1.5.5

26.Feb.2017. Fixed CMYK color space problem and regenerating file problem.

1.5.4

10.Feb.2017. Fixed Undefined index message.

1.5.3

2.Feb.2017. Fixed Undefined index message.

1.5.2

8.Jan.2017. Fixed the bug that caused configuring a wrong guid when upload file on an older post. thumbnail naming.

1.5.1

10.Nov.2016. Change capability of add_options_page. Fix wp.media.view filters and text.

1.5.0

10.Nov.2016. Fix regenerating and overwriting file problems. Change default imagick dpi from 72 to 150.

1.4.9

21.Oct.2016. Fix conflict with ACF in media attachment edit page. Fix setImageAlphaChannel problem.

1.4.8

18.Sep.2016. Fix error strings. Improve branching process of Imagick. Add guid parameter to a thumbnail file.

1.4.7

28.Aug.2016. Add error_log into the converting process.

1.4.6

28.Jun.2016. Change get_posts to get_results. Add translation to img alt. Change converting process of color.

1.4.5

5.Jun.2016. Add overriding wp_get_attachment_metadata function. Add thumb-of-pdf class to a PDF thumbnail via wp_get_attachment_image. Fix a conflict with changing media-frame-menu of wp.media editor.

1.4.4

12.May.2016. Add Color detection process and command of ICC Profile application.

1.4.3

11.May.2016. Add thumbnail box in an edit page of PDF. Change fork process by ImageMagick Versions and convert settings.

1.4.2

8.May.2016. Correspondence to GlotPress. Change the default resolution to 300dpi.

1.4.1

14.Apr.2016. Divide converting processes by IM versions. Use "flattenImages" to imagick api with IM lt6.3.8. Use "-alpha remove" to IM gte6.7.5.

1.4.0

5.Apr.2016. Add option to convert png and background color selector. Modify to avoid overwriting GDE (Google Doc Embedder) hook.

1.3.9

20.Mar.2016. Change imagick filter flattenImages() to "setImageAlphaChannel" & "mergeImageLayers". Modify behavior of inserting image without media link. Change process of activation.

1.3.8

12.Feb.2016. Add filter to hide image file of PDF on List mode of Media Library. Modify behavior of wp.media.view.settings. Arrange and clean up options of Featured Image which doesn't function well.

1.3.7

7.Feb.2016. Add filter to attachment link and change format of renaming file basename.

1.3.6

22.Dec 2015. Modify css and activate message.

1.3.5

20.Nov 2015. Modify input fields of Max-width, Max-height and quality to accept only numeric values. Fix behavior of "hide thumbnail" option. Update translation files.

1.3.4

30.Oct 2015. Add option to manually set maximum size of generated image. Add option to regenerate images of already uploaded PDFs. Fix continuity of settings.

1.3.3

21.Oct 2015. Fix and add filters for modifying imageMagick settings.

1.3.2

20.Oct 2015. Add an option for select the functions of imageMagick. Fix default alignment of insert media. Update translation files.

1.3.1

18.Oct 2015. Fix.

1.3

17.Oct 2015. Define classes in the plugin file. Add Attachment Display Settings when trying to insert PDF.

1.2.2

14.Oct 2015. Fix.

1.2.1

12.Oct 2015. Add the plugin page, customizable options, and Japanese language files.

1.2.0

09.Oct 2015. Thumbnail files themselves now hidden in the media library. Allow user to set PDF as Featured Image and to use wp_get_attachment_image function to a PDF file.

1.1.6

28.June 2015. Disabl pigen_change_icon function only in the static media library.

1.1.5

13.May 2015. Automatically add caption short-code when the caption field filled.

1.1.4

02.May 2015. Remove the [0] from the image file name.

1.1.3

24.Apr 2015. Change the way to check in an activation if exec() is enabled or disabled on a server.

1.1.2

4.Apr 2015. Remove the process of generating a test file.

1.1.1

14.Mar 2015. Fix colorspace bug, modified register_activation_hook and error messages.

1.1

3.Feb 2015. Add support for imagick Extension, and added uninstall.php.

1.0.1

17.Jan 2015. Add Verifying ImageMagick installation

1.0

12.Jan 2015. First public version Release

0.1

26.Sep 2014. Initial Release


  1. Copy the 'pdf-image-generator' folder into your plugins folder.
  2. Activate the plugin via the 'Plugins' menu. The plugin requires no setup or modifying core wordpress files. See the 'Other Notes' tab for more info.


 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string 8Yj1WW to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.