Page 1 of 1

Imagemagick -format '%m' turns SVG into MVG if '%r' is present

Posted: 2015-05-17T03:40:39-07:00
by hraban
The mere presence of %r in the -format string makes %m detect SVG files as MVG files. Doesn't happen if %r is not present. Here's an example:

Code: Select all

hraban@virtualbox:/tmp$ curl 'http://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg?download' > SVG_logo.svg
hraban@virtualbox:/tmp$ identify SVG_logo.svg
SVG_logo.svg SVG 100x100 100x100+0+0 16-bit sRGB 8.98KB 0.000u 0:00.000
hraban@virtualbox:/tmp$ identify -format '%m\n' SVG_logo.svg
SVG
hraban@virtualbox:/tmp$ identify -format '%m\n%r\n' SVG_logo.svg
MVG
DirectClass sRGB Matte
hraban@virtualbox:/tmp$ identify -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
This doesn't happen with imagemagick 6.7.7-10.

Re: Imagemagick -format '%m' turns SVG into MVG if '%r' is present

Posted: 2015-05-17T05:35:25-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.9.1-3 Beta, available by sometime tomorrow. Thanks.