MediaWiki图形转换
前一阵子将一个MediaWiki系统从一台服务器迁移到另一台服务器上,发现图像的缩略图(Thumbnail Image)生成不出来,一直不知道原因所在。昨天才发现是新系统上没有安装ImageMagick的图像处理工具,而不是MediaWiki系统上其他补丁程序导致的。
[root@kb kb]# rpm -qf /usr/bin/convert error: file /usr/bin/convert: No such file or directory [root@kb kb]# yum install ImageMagick Gathering header information file(s) from server(s) Server: CentOS-3 - Addons Server: CentOS-3 - Base Server: CentOS-3 - Extras Server: CentOS-3 - Updates Finding updated packages Downloading needed headers rh-postgresql-devel-0-7.3 100% |=========================| 16 kB 00:00 rh-postgresql-libs-0-7.3. 100% |=========================| 5.7 kB 00:00 libtiff-0-3.5.7-25.el3.1. 100% |=========================| 4.6 kB 00:00 xscreensaver-1-4.10-20.i3 100% |=========================| 22 kB 00:02 rh-postgresql-test-0-7.3. 100% |=========================| 17 kB 00:00 rh-postgresql-python-0-7. 100% |=========================| 5.6 kB 00:00 rh-postgresql-0-7.3.15-2. 100% |=========================| 29 kB 00:01 rh-postgresql-tcl-0-7.3.1 100% |=========================| 5.4 kB 00:00 rh-postgresql-jdbc-0-7.3. 100% |=========================| 5.0 kB 00:00 rh-postgresql-server-0-7. 100% |=========================| 8.9 kB 00:00 libtiff-devel-0-3.5.7-25. 100% |=========================| 8.7 kB 00:00 rh-postgresql-pl-0-7.3.15 100% |=========================| 5.6 kB 00:01 rh-postgresql-contrib-0-7 100% |=========================| 10 kB 00:00 rh-postgresql-docs-0-7.3. 100% |=========================| 14 kB 00:01 Resolving dependencies .Dependencies resolved I will do the following: [install: ImageMagick 5.5.6-18.i386] I will install/upgrade these to satisfy the dependencies: [deps: libungif 4.1.0-15.el3.3.i386] Is this ok [y/N]: y Downloading Packages Getting ImageMagick-5.5.6-18.i386.rpm ImageMagick-5.5.6-18.i386 100% |=========================| 2.8 MB 03:21 Getting libungif-4.1.0-15.el3.3.i386.rpm libungif-4.1.0-15.el3.3.i 100% |=========================| 34 kB 00:00 Running test transaction: Test transaction complete, Success! libungif 100 % done 1/2 ImageMagick 100 % done 2/2 Installed: ImageMagick 5.5.6-18.i386 Dep Installed: libungif 4.1.0-15.el3.3.i386 Transaction(s) Complete [root@kb kb]#
有了ImageMagick中的convert转换工具,缩略图生成一切正常。
- wensong's blog
- Log in or register to post comments
- 7878 reads
Comments
Anonymous (没有被验证)
周日, 2007-06-17 10:46
Permalink
good!
good!