Alpine Linux 上的 imagemagick wmf 支持 [英] imagemagick wmf support on Alpine Linux

查看:36
本文介绍了Alpine Linux 上的 imagemagick wmf 支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Alpine 上安装 imagemagick,它选择了 7.0.10 版本的 imagemagick.

I am installing imagemagick on Alpine, which picks up 7.0.10 version of imagemagick.

我的主要用途是将 WMF 转换为 PNG.但是 convert sample.wmf sample.png 给出错误

My primary use is to covert WMF to PNG. But convert sample.wmf sample.png gives error

convert: no decode delegate for this image format `WMF' @ error/constitute.c/ReadImage/572.
convert: no images defined `sample.png' @ error/convert.c/ConvertImageCommand/3322.

根据 https://www.imagemagick.org/script/formats.php,我也安装了libwmf,但没有解决问题.

As per https://www.imagemagick.org/script/formats.php, I also installed libwmf, which does not resolve the issue.

identify -list 格式 |grep WMF 不返回任何结果.

推荐答案

更新答案

你很幸运!GraphicsMagick 可以在 alpine:latest 上做到:

You are in luck! GraphicsMagick can do it on alpine:latest:

apk add graphicsmagick

gm identify -version
GraphicsMagick 1.3.36 20201226 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2020 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.

Feature Support:
  Native Thread Safe         yes
  Large Files (> 32 bit)     yes
  Large Memory (> 32 bit)    yes
  BZIP                       no
  DPS                        no
  FlashPix                   no
  FreeType                   yes
  Ghostscript (Library)      no
  JBIG                       no
  JPEG-2000                  no
  JPEG                       yes
  Little CMS                 no
  Loadable Modules           yes
  Solaris mtmalloc           no
  Google perftools tcmalloc  no
  OpenMP                     no
  PNG                        yes
  TIFF                       yes
  TRIO                       no
  Solaris umem               no
  WebP                       yes
  WMF                        yes        <--- HERE IT IS
  X11                        no
  XML                        yes
  ZLIB                       yes

现在进行从 WMF 到 PNG 的转换:

Now do the conversion from WMF to PNG:

gm convert sample.wmf result.png


原答案

我认为您无法做到这一点,至少使用 ImageMagick...

I don't think you'll be able to do that, with ImageMagick at least...

我尝试在 alpine:latest 上安装 libwmf,然后从源代码安装 ImageMagick,但它拒绝使用 libwmf v0.2.12

I tried installing libwmf on alpine:latest and then installing ImageMagick from source and it declined to use libwmf v0.2.12

所以我检查了 ImageMagick 需要什么,它需要 libwmf v0.2.8.2.

So I checked what ImageMagick requires and it wants libwmf v0.2.8.2.

所以我尝试了 alpine:3.8 它可以安装 libwmf v0.2.8.4 但 ImageMagick 仍然不接受(xxx/缺少 ipa.h).

So I tried alpine:3.8 which can install libwmf v0.2.8.4 but ImageMagick still wouldn't accept that (xxx/ipa.h is missing).

所以我回顾了 alpine:3.3alpine:3.4 并且它们没有 libwmf.

So I looked back to alpine:3.3 and alpine:3.4 and they have no libwmf.

所以我尝试了 alpine:3.5 并且它是与 alpine:3.8 相同的 libwmf 版本

So I tried alpine:3.5 and that was the same libwmf version as alpine:3.8

TLDR;alpine:3.5 的 libwmf 对于 ImageMagick 来说太新了,alpine:3.4 根本没有 libwmf.

TLDR; alpine:3.5's libwmf is too new for ImageMagick and alpine:3.4 doesn't have libwmf at all.

注意:我在 libwmf 的包和版本nofollow noreferrer">这个 网站.

Note: I found the packages and versions of libwmf on this website.

这篇关于Alpine Linux 上的 imagemagick wmf 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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