- A+
所属分类:使用集成
背景
在win10环境下安装alfresco-community-installer-201707-win-x64.exe,启动后在share的一览中无法显示图片的缩略图,但pdf和office的缩略图能正常显示。看alfresco.log,启动服务时候报以下错误:
INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] [localhost-startStop-1] ImageMagickContentTransformerWorker not available: 07040036 Failed to perform ImageMagick transformation:
Execution result:
os: Windows Server 2012
command: C:\Alfresco-Content-Services\imagemagick\convert.exe C:\ALFRES~1\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_source_6994349119937223645.gif -strip -quiet C:\ALFRES~1\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_target_8913378890169622165.png
succeeded: false
exit code: 1
out:
err: convert.exe: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/670.
convert.exe: no decode delegate for this image format `GIF' @ error/constitute.c/ReadImage/509.
convert.exe: no images defined `C:\ALFRES~1\tomcat\tem
INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
主要是这句:convert.exe: RegistryKeyLookupFailed 'CoderModulesPath',所以怀疑是ImageMagick有问题。
解决办法
这是Alfresco社区版本5.2.0~5.2.1中的Imagemagick的一个bug。可以通过重新安装Imagemagick来解决:
1、首先,到官网下载Imagemagick
http://www.imagemagick.org/script/download.php#windows
选择ImageMagick-7.0.8-57-Q16-HDRI-x64-dll.exe下载
2、安装
Imagemagick到Alfresco安装目录下,安装时候记得勾选“Install legacy utilities (e.g. convert)”
3、修改alfresco-global.properties,指定img.root到新路径下
img.root=D:\\alfresco-community\\ImageMagick-7.0.8-Q16-HDRI
4、重启Alfresco,问题解决。