Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create square png image from non square svg file #535

Closed
qarmin opened this issue Sep 7, 2022 · 4 comments
Closed

Cannot create square png image from non square svg file #535

qarmin opened this issue Sep 7, 2022 · 4 comments

Comments

@qarmin
Copy link

qarmin commented Sep 7, 2022

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

@RazrFalcon
Copy link
Owner

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

@qarmin
Copy link
Author

qarmin commented Sep 16, 2022

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.

@RazrFalcon
Copy link
Owner

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
Copy link
Owner

Out of scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants