管理 > ImageMagick for PTC FlexPLM > 配置 FlexPLM 以使用 ImageMagick > 启用图像生成功能的属性
  
启用图像生成功能的属性
要覆盖图像生成功能的默认配置设置,请将下表中描述的属性添加到 custom.lcs.properties 文件。根据需要配置属性。
* 
imageGeneration.viewableParametersimageGeneration.thumbnailParameters 实际上具有相同功能。它们控制从一种格式到另一种格式的转换过程。
尺码以字节为单位。1 kb = 1024 字节。1 MB = 1048576 字节 (1024 x 1024)。
属性
说明
imageGeneration.enabled
启用图像生成功能。将此值设置为 true,意味着系统管理员已经安装启用功能所需的第三方软件组件。
默认值 = false
可选值 = truefalse
imageGeneration.format
定义由图像生成功能生成的缩略图和可查看对象的导出格式。
默认值 = png
可选值 = gif、jpg、bmp、png
imageGeneration.<DocumentTypeName>.preferredFormat
设置给定类型可查看对象的首选文件格式。
您必须使用反斜杠加空格来表示 <DocumentTypeName> 条目中的空格。例如,文档类型“正面草图”应在属性设置中输入为 Front\ Sketch
imageGeneration.thumbnailGeometry
定义由图像生成功能生成的所有缩略图的大小。
默认值 = 100 x 100
可选值 = 任何宽度 x 任何高度
imageGeneration.viewableGeometry
定义由图像生成功能生成的所有缩略图的大小。
默认值 = 空白
如果留空,系统会保留尺码并转换为 imageGeneration.format 属性所指定的格式。
可选值 = 任何宽度 x 任何高度
imageGeneration.<DocumentTypeName>.preferredViewableGeometry
设置给定类型可查看对象的首选几何。以像素为单位指定为 <length> x <width>
您必须使用反斜杠加空格来表示 <DocumentTypeName> 条目中的空格。例如,文档类型“正面草图”应在属性设置中输入为 Front\ Sketch
imageGeneration.ImageMagickHome
可执行 ImageMagick convert 的位置。
此属性没有默认值。这取决于 ImageMagick 的安装位置。在 UNIX 上,建议将其安装在 /usr/local 中。
imageGeneration.ImageMagickEnv
默认值 = “”
imageGeneration.maxFilesizeConvertThreshhold
已上载的图像不能超过此大小 (以字节为单位) 才会被视为转换为 imageGeneration 格式属性所指定的格式的候选项。
默认值 = 600000
imageGeneration.viewableParameters
生成缩略图时,管理员想要在 ImageMagick convert 命令的输出文件中传递的任何其他参数。
默认值 = 空白
示例:-quality-compress
要执行图像压缩,请参阅 ImageMagick 的“帮助”,了解 convert 命令以获取选项的完整列表。
imageGeneration.thumbnailParameters
生成缩略图时,管理员想要在 ImageMagick convert 命令的输出文件中传递的任何其他参数。
默认值 = 空白
示例:-quality-compress
要执行图像压缩,请参阅 ImageMagick 的“帮助”,了解 convert 命令以获取选项的完整列表。
imageGeneration.rasterFileTypes
支持的等距文件类型。
默认值 = bmp、gif、png、jpg、jpeg
imageGeneration.vectorFileTypes
支持的矢量文件类型。
默认值 = ai、pdf、ps、tif、tiff
com.lcs.wc.document.imageGeneration.viewableSettingParameters
生成可查看对象时,管理员想要在 ImageMagick 转换命令的输出文件中传递的任何其他参数。
默认值 = 空白
示例︰-density 300 用于更改分辨率。有关详细信息,请参阅 ImageMagick“帮助”
xmp.enabled
启用 AI 插件功能。
默认值 = true
imageGeneration.removeThumbnail.onRemoveContent
删除缩略图所基于的内容时,移除缩略图。
默认值 = false
imageGeneration.createImagePageThumbnail
根据图像页面中的图像创建产品缩略图的功能。
默认值 = true
ignoreThumbnailGeometry
生成缩略图时,不会更改其大小。
默认值 = false
imageGeneration.ImageMagickErrorsToIgnore
ImageMagick 成功转换了图形文件,但错误报告了错误退出状态。要在 ImageMagick 作者提供修补码之前解决此问题,将可忽略的错误消息添加到此属性条目。
Windows
属性
# 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
ImageMagick 的安装位置
com.lcs.wc.document.imageGeneration.filesizeThreshholdcom.lcs.wc.document.imageGeneration.ImageMagickEnv
250000 (留空)
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
属性
# 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