resvg
resvg copied to clipboard
Cannot create square png image from non square svg file
resvg 1528971912.svg 1528971912.png -w 500 -h 500
will produce image with size 280x500. Both rsvg and thorvg support such thing
Do you expected a centered or scaled/skewed content? Anyway, resvg indeed doesn't support this. It always preserves the aspect.
If user want to get image with proper aspect ratio, then it should use proper height and weight values. For now in resvg, there is now way to resize image with different aspect ratio.
So your goal is to skew the image? This is not supported. Mainly because I'm not sure why anyone would want that. Can you at least explain your use case?