content contentRef generateThumbnail

Available for: Content Management Server

Task: Creates the thumbnail image belonging to the draft version with the specified ID and stores it in the thumbnail version field. When images are imported into the CMS (manually or by restoring a dump), the system automatically generates thumbnail images by calling this function. Therefore, this function only needs to be called if thumbnail generation failed because of incompatible image data, for example.

Syntax:

content withId contentId generateThumbnail

Function parameters: none.

Return value if successful: none.

Necessary permissions: The user must have at least one of the permissionRead and permissionRoot permissions for the file to which the version belongs.

Example:

CM>content withId 43219 generateThumbnail