Page 1 of 1

How to convert SVG with exact size?

Posted: 2018-10-02T05:41:48-07:00
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?

Re: How to convert SVG with exact size?

Posted: 2018-10-02T06:01:15-07:00
by snibgo
Use an exclamation mark: -resize 1920x1080!

See http://www.imagemagick.org/script/comma ... p#geometry

Re: How to convert SVG with exact size?

Posted: 2018-10-02T06:21:29-07:00
by etrader
Excellent! Works perfectly. Thanks!