resvg icon indicating copy to clipboard operation
resvg copied to clipboard

Cannot create square png image from non square svg file

Open qarmin opened this issue 1 year ago • 2 comments

1528971912.svg.zip

resvg 1528971912.svg 1528971912.png -w 500 -h 500

will produce image with size 280x500. Both rsvg and thorvg support such thing

qarmin avatar Sep 07 '22 17:09 qarmin

Do you expected a centered or scaled/skewed content? Anyway, resvg indeed doesn't support this. It always preserves the aspect.

RazrFalcon avatar Sep 07 '22 18:09 RazrFalcon

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.

qarmin avatar Sep 16 '22 15:09 qarmin

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?

RazrFalcon avatar Sep 17 '22 01:09 RazrFalcon