How to convert SVG with exact size?

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
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

How to convert SVG with exact size?

Post by etrader »

I try to convert a series of SVG files to JPG with the following command

Code: Select all

mogrify -format jpg -size 1920x1080 -resize 1920x1080 *.svg
However, the dimension of the resulting JPG files is 1919x1080. How can I force ImageMagick not to alter 1px?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to convert SVG with exact size?

Post by snibgo »

Use an exclamation mark: -resize 1920x1080!

See http://www.imagemagick.org/script/comma ... p#geometry
snibgo's IM pages: im.snibgo.com
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

Re: How to convert SVG with exact size?

Post by etrader »

Excellent! Works perfectly. Thanks!
Post Reply