inkscape - command line - Keep Aspect ratio when resizing to specific width/height
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
When using command line resizing today you'd do something like this:
inkscape.exe -f=myInputSvg.svg -e=myOutputFile.png -w=400 -h=400 -z
Then the resulting image will be 100% wide and 100% high which is all fine and dandy, however it can look very squeezed.
You might not want such a result, you might want keep the aspect ratio of the original svg.
So a suggestion would be to add a parameter -keepAspect or -maintainAspect
Which would still make a 400x400 image however the actual drawing inside will be centered inside to 200x400 or 400x200 depending on the shape of the original svg.
This is a suggestion and something which I am in need with.
Here's what I used to export the png in the comments below:
"c:\program files\inkscape\
tags: | removed: suggestion |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
tags: | added: bug-migration |
this is an example of how sportcar was exported if I wanted a 400x400 image. There is no way to keep the proportions today.