Vector conversion is blurry with -render in command

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sergey
Posts: 1
Joined: 2016-03-29T06:51:50-07:00
Authentication code: 1151

Vector conversion is blurry with -render in command

Post by sergey »

Hi guys,

I'm trying to convert EMF to SVG file via command line in Windows (i'm using this distributive: http://www.imagemagick.org/download/bin ... 64-dll.exe) and my resuslt file is blurry like when ImageMagic render vector to raster. But according to documentation (http://www.imagemagick.org/script/comma ... php#render) I've tried to add -render attribute and still nothing.

my command line is next:

convert -render c:\temp\test\source_samples\pngtest_1.emf c:\temp\test\source_samples\pngtest_1.svg

here is archive with input and output files and also with screenshot of conversion difference.
https://drive.google.com/file/d/0B_Kows ... sp=sharing

Could someone please help me with that?
I'd really like to get result file in vector.

Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Vector conversion is blurry with -render in command

Post by fmw42 »

Imagemagick is not a good vector to vector converter (or raster to vector converter). It will rasterize between input and output. You should find a true vector to vector converter. see http://www.imagemagick.org/Usage/formats/#vector
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Vector conversion is blurry with -render in command

Post by magick »

If your end result is to keep your vector source in the output file, use a vector utility. If you want to render your vectors as an image, you can improve the results with the -density option:
  • convert -density 400 c:\temp\test\source_samples\pngtest_1.emf -resize 25% c:\temp\test\source_samples\pngtest_1.png
Post Reply