使用ImageMagick进行SVG转换不能正确应用转换 [英] SVG Converting using ImageMagick doesn't apply a translation correctly

查看:177
本文介绍了使用ImageMagick进行SVG转换不能正确应用转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上使用Mac 操作系统  X 10.5,我正在尝试使用ImageMagick转换 SVG 文件到 PNG 。问题是当我使用它时,旋转的图像不会显示在正确的位置。如果我使用 Batik 转换文件,它可以正常工作。

I am on a Mac using Mac OS X 10.5, and I am trying to use ImageMagick to convert an SVG file to a PNG. The problem is when I use it the rotated image doesn't show up in the correct position. If I use Batik to convert the file, it works properly.

在做了一些研究之后,我发现了一个讨论尝试升级SVG库的线程。目前,根据识别 - 列表格式,我使用的是ImageMagick 6.6.5,SVG库是2.7.7。我发现使用librsvg 2.32建议的线程。

After doing some research I found a thread that talked about trying to upgrade the SVG library. Currently, I am using ImageMagick 6.6.5 and the SVG library is 2.7.7 according to "identify -list format". The thread I found recommended using librsvg 2.32.

我尝试使用端口安装更新的SVG库并使用端口重新安装ImageMagick。我遇到的问题和问题是无论我对端口做什么我都无法使用更新版本的SVG库。它保持在2.7.7。如何让它使用新库?

I have tried using port to install the updated SVG library and using port to reinstall ImageMagick. The problem and the question I have is no matter what I do with port I can't get it to use the newer version of the SVG library. It stays at 2.7.7. How do I get it to use the new library?

推荐答案

我在10.7上遇到过这种情况,通过macPorts安装了imageMagick。尝试并尝试使用不同的选项进行一些卸载/重新安装失败后。我最终在安装librsvg后从源代码中卸载并构建,现在一切都可以使用更新的svg库。

I was experiencing this on 10.7, having installed imageMagick via macPorts. After trying and failing a couple of uninstall/reinstalls with differing options. I finally uninstalled and built from source, after installing librsvg, and now everything works using the updated svg libraries.

ImageMagick的unix源代码和说明在这里:
< a href =http://www.imagemagick.org/script/install-source.php =nofollow> http://www.imagemagick.org/script/install-source.php

ImageMagick's unix source and instructions are here: http://www.imagemagick.org/script/install-source.php

ImageMagick还提供了有关在配置步骤中明确链接库和库路径的说明(http://www.imagemagick.org/script/advanced-unix-installation.php)虽然我不必这样做。

ImageMagick also provides instructions on linking libraries and library paths explicitly in your configuration step (http://www.imagemagick.org/script/advanced-unix-installation.php) although I didn't have to do this.

这篇关于使用ImageMagick进行SVG转换不能正确应用转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆