IBM FileNet P8, Version 5.2            

Thumbnails

The Content Engine APIs support storing, generating, and managing document thumbnails. A thumbnail is a small bitmap image of the first page of a content element. Thumbnails allow users to quickly verify content before they download or check out documents.

The Content Engine includes a thumbnail generation service for rendering thumbnail images automatically. Thumbnails can also be user generated; that is, the images can be generated by a third-party application but persisted on the Content Engine.

Important: The Thumbnail Extension Addon is required for Content Engine thumbnail generation. The addon is not required for persisting user-generated thumbnails.

This topic describes the classes used to process thumbnail requests for automatic generation of thumbnails. It also discusses the various automatic generation options that create thumbnail requests. Lastly, it describes the user-generated option. For code examples, see Working with Thumbnails.

Processing Thumbnail Requests

The Content Engine thumbnail generation service renders a thumbnail image from a document content element. You cannot generate thumbnails for annotations. The process for automatically generating a thumbnail starts with a thumbnail request. How a request is created depends on the automatic generation options that you implement.

A request is represented by a CmThumbnailRequest object, and is placed on the ThumbnailRequest queue table. This object references a single content element in the document version to be submitted for thumbnail generation.

A queue sweep job processes the ThumbnailRequest queue table, passing document content elements to the thumbnail generation service. The queue sweep job is represented by a CmThumbnailRequestSweep object, which controls thumbnail attributes such as format and size. A CmThumbnailRequestSweep instance is created by the Thumbnail Extensions AddOn. You cannot create additional instances of this class.

When the thumbnail generation service successfully renders a thumbnail image, a CmThumbnail object is created that contains the thumbnail image and that references the source document and content element for the generated image. A document can have multiple thumbnails, referenced by the document's CmThumbnails property.

The system removes successfully completed thumbnail requests from the ThumbnailRequest queue table, as well as exceptions where the system cannot process the request, and which cannot be fixed by an administrator. Failed requests that are fixable by an administrator are automatically retried up to a configurable number of times. If the retries fail, the requests remain in the queue table. A CmThumbnailRequest object provides failure information, and allows an administrator to manually restart retries for failed requests.

Automatic Generation Options

Thumbnails can be automatically generated by the Content Engine thumbnail generation service in the following ways.

User-Generated Option

Unlike the automatic generation options where a Content Engine service renders thumbnail images, the user-generated option supports persistence of thumbnails with images generated by third-party applications. In this scenario, a client application directly creates a CmThumbnail object and sets the externally generated thumbnail image on it.



Feedback

Last updated: October 2013
thumbnail_concepts.htm

© Copyright IBM Corporation 2014.
This information center is powered by Eclipse technology. (http://www.eclipse.org)