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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
hraban
Posts: 1
Joined: 2015-05-17T03:31:44-07:00
Authentication code: 6789

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply