我正在阿尔卑斯山安装imagemagick,这是7.0.10版本的imagemagick。
我的主要用途是将WMF隐蔽到巴布亚新几内亚。但是convert sample.wmf sample.png给出了错误
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,它没有解决这个问题。
identify -list format | grep WMF不返回任何结果。
发布于 2021-09-08 00:38:29
最新答案
你很幸运!GraphicsMagick可以在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的转换:
gm convert sample.wmf result.png原始答案
我不认为你能做到,至少ImageMagick .
我尝试在alpine:latest上安装alpine:latest,然后从源代码中安装ImageMagick,它拒绝使用libwmf v0.2.12
所以我检查了ImageMagick需要什么,它需要libwmf v0.2.8.2。
所以我尝试了alpine:3.8,它可以安装libwmf v0.2.8.4,但是ImageMagick仍然不接受(xxx/ipa.h缺少)。
所以我回头看看alpine:3.3和alpine:3.4,他们没有libwmf。
因此,我尝试了alpine:3.5,这是与高寒相同的libwmf版本:3.8
高寒:3.5的libwmf对,ImageMagick,来说太新了,alpine:3.4根本就没有libwmf。
Note:我在这网站上找到了libwmf的包和版本。
https://stackoverflow.com/questions/69080507
复制相似问题