ericmann / WP-Publication-Archive

Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.) in WordPress.
http://wordpress.org/extend/plugins/wp-publication-archive/
27 stars 12 forks source link

Auto-generate Thumbnail from File #10

Open ericmann opened 12 years ago

ericmann commented 12 years ago

The Google Docs API automatically converts documents into images when displayed in the browser. It's possible to use this API feature to automatically generate a thumbnail of the first page of the file and store it in WP.

helgatheviking commented 12 years ago

imagick can generate thumbnails of PDFs. i'm looking at this issue too as i have a client who needs to manage some documents. i'm thinking about storing an image as post meta. wordpress needs to pass an extra variable through the icon_dir filter and then we could grab that thumbnail with wp_get_attachment_image() for the document itself.

http://core.trac.wordpress.org/ticket/20205

since that isn't the case, i'm thinking the best we could do is check for the meta value and show the attachment_image for that image.