Administration > ImageMagick for PTC FlexPLM > Configuring FlexPLM to Use ImageMagick > Properties for Enabling the Image Generation Feature
  
Properties for Enabling the Image Generation Feature
To override the default configuration settings for the image generation feature, add the properties described in the following table to the custom.lcs.properties file. Configure the properties as needed.
* 
imageGeneration.viewableParameters and imageGeneration.thumbnailParameters have essentially the same function. They control the conversion process from one format to another.
Sizes are given in bytes. 1 kb = 1024 bytes. 1 MB = 1048576 bytes (1024 x 1024).
Property
Description
imageGeneration.enabled
Enables the image generation feature. Setting this value to true implies that the systems administrator has installed the required third-party software components to enable the feature to work.
Default value = false
Possible values = true, false
imageGeneration.format
Defines the output format for both thumbnails and viewables generated by the image generation feature.
Default value = png
Possible values = gif, jpg, bmp, png
imageGeneration.<DocumentTypeName>.preferredFormat
Sets a preferred file format for viewables on a given type.
You must represent spaces in the <DocumentTypeName> entry by a backwards slash followed by a space. For example, the document type “Front Sketch” would be entered in the property setting as Front\ Sketch.
imageGeneration.thumbnailGeometry
Defines the size of all thumbnails generated by the Image Generation feature.
Default value = 100x100
Possible value = any width x any height
imageGeneration.viewableGeometry
Defines the size of all thumbnails generated by the Image Generation feature.
Default value = blank
If left blank, the system maintains the size and converts to the format specified by the imageGeneration.format property.
Possible value = any width x any height
imageGeneration.<DocumentTypeName>.preferredViewableGeometry
Sets a preferred geometry for viewables on a given type. Specify as <length> x <width> in pixels.
You must represent spaces in the <DocumentTypeName> entry by a backwards slash followed by a space. For example, the document type “Front Sketch” would be entered in the property setting as Front\ Sketch.
imageGeneration.ImageMagickHome
Location of the ImageMagick convert executable.
There is no default value for this property. It depends on where ImageMagick is installed. On UNIX, it is recommended to have it installed in /usr/local.
imageGeneration.ImageMagickEnv
Default value = “”
imageGeneration.maxFilesizeConvertThreshhold
Uploaded images must not exceed this size (in bytes) to be considered a candidate for conversion to the format specified by the imageGeneration format property.
Default value = 600000
imageGeneration.viewableParameters
Any additional parameters that the administrator wants to pass for the output file of the ImageMagick convert command when generating viewables.
Default value = blank
Example: -quality or -compress
To perform image compression, see ImageMagick help for the convert command to get a complete list of options.
imageGeneration.thumbnailParameters
Any additional parameters that the administrator wants to pass for the output file of the ImageMagick convert command when generating thumbnails.
Default value = blank
Example: -quality or -compress
To perform image compression, see ImageMagick help for the convert command to get a complete list of options.
imageGeneration.rasterFileTypes
Supported raster file types.
Default value = bmp,gif,png,jpg,jpeg
imageGeneration.vectorFileTypes
Supported vector file types.
Default value = ai,pdf,ps,tif,tiff
com.lcs.wc.document.imageGeneration.viewableSettingParameters
Any additional parameters that the administrator wants to pass for the output file of the ImageMagick convert command when generating viewables.
Default value = blank
Example: -density 300 to change resolution. For more information, see ImageMagick help.
xmp.enabled
Enables AI plug-in functionality.
Default value = true
imageGeneration.removeThumbnail.onRemoveContent
Removes a thumbnail when the content on which it is based is deleted.
Default value = false
imageGeneration.createImagePageThumbnail
Ability to create a thumbnail for a product based on an image in an image page.
Default value = true
ignoreThumbnailGeometry
When a thumbnail is generated, its size is not changed.
Default value = false
imageGeneration.ImageMagickErrorsToIgnore
ImageMagick successfully converts a graphics file but falsely reports an error exit status. To work around the issue until a patch is available from the authors of ImageMagick, add the ignorable error message to this property entry.
Windows
Property
Value
# Document/Image automatic image conversion processing
com.lcs.wc.document.imageGeneration.enabled
true
com.lcs.wc.document.imageGeneration.format
gif
com.lcs.wc.document.imageGeneration.thumbnailGeometry
100x100
com.lcs.wc.document.imageGeneration.viewableGeometry
com.lcs.wc.document.imageGeneration.ImageMagickHome
Location of ImageMagick installation
com.lcs.wc.document.imageGeneration.filesizeThreshholdcom.lcs.wc.document.imageGeneration.ImageMagickEnv
250000 (leave blank)
com.lcs.wc.document.imageGeneration.maxFilesizeConvertThreshhold
600000
com.lcs.wc.document.imageGeneration.filesizeThreshhold
250000
com.lcs.wc.document.imageGeneration.viewableParameters
com.lcs.wc.document.imageGeneration.thumbnailParameters
com.lcs.wc.document.imageGeneration.rasterFileTypes
bmp,gif,png,jpg,jpeg
com.lcs.wc.document.imageGeneration.vectorFileTypes
ai,pdf,ps,tif,tiff,svg
Unix
Property
Value
# Document/Image automatic image conversion processing
com.lcs.wc.document.imageGeneration.enabled
true
com.lcs.wc.document.imageGeneration.format
gif
com.lcs.wc.document.imageGeneration.thumbnailGeometry
100x100
com.lcs.wc.document.imageGeneration.viewableGeometry
com.lcs.wc.document.imageGeneration.ImageMagickHome
com.lcs.wc.document.imageGeneration.ImageMagickEnv
com.lcs.wc.document.imageGeneration.filesizeThreshhold
250000
com.lcs.wc.document.imageGeneration.maxFilesizeConvertThreshhold
600000
com.lcs.wc.document.imageGeneration.viewableParameters
com.lcs.wc.document.imageGeneration.thumbnailParameters
com.lcs.wc.document.imageGeneration.rasterFileTypes
bmp,gif,png,jpg,jpeg
com.lcs.wc.document.imageGeneration.vectorFileTypes
ai,pdf,ps,tif,tiff,svg