Imagemagick在Ubuntu上的图像上丢失了渐变 [英] Imagemagick loses gradient on image on Ubuntu
问题描述
我使用的是Ubuntu 11.10。
我从最新的源包中安装了ImageMagick。以下是convert -version的输出
I am using Ubuntu 11.10. I have installed ImageMagick from the latest source package. Here is the output from "convert -version"
Version: ImageMagick 6.7.6-6 2012-04-19 Q16 http: // www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
我试图将svg转换为png,除非我在图像的某个部分有渐变,否则它会很好用。
I am trying to convert an svg into a png which works great unless I have a gradient on some part of the image.
这里是我正在运行的命令:
Here is the command I am running:
convert RedPoweredByPenguins.svg redpenguin.png
以下是SVG: http:/ /gamepsychos.com/penguinCheckers/redPenguin.svg
这是它创建的png: http://gamepsychos.com/penguinCheckers/redpenguinfail.png
And here is the png it creates: http://gamepsychos.com/penguinCheckers/redpenguinfail.png
当我运行同样的命令时在Fedora 16上,我不会失去渐变。我想也许ImageMagick使用的库之一不一样,但我不确定。有什么想法吗?
When I run this same command on Fedora 16, I don't lose the gradient. I think maybe one of the libraries ImageMagick uses is not the same but I'm not sure. Anyone have any ideas?
工作系统的版本输出是:
The version output on the working system is:
Version: ImageMagick 6.7.6-6 2012-04-19 Q16 http: //www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
推荐答案
经过一些额外的研究,我发现SVG代表那个故障机器没有使用与工作机器上相同的机器。
After some additional research, I found that the SVG delegate that the "faulty" machine was not using the same as the one on the working machine.
为了解决这个问题,我安装了rsvg。
To correct this, I installed rsvg.
apt-get install librsvg2-bin
然后我将ImageMagick的配置更改为使用rsvg而不是默认委托。
Then I change ImageMagick's configuration to use rsvg rather than the default delegate.
这篇关于Imagemagick在Ubuntu上的图像上丢失了渐变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!