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

Support SVG Aspect Ratio .maintain_aspect_ratio(true) #5267

Open
dxshie opened this issue Oct 14, 2024 · 0 comments
Open

Support SVG Aspect Ratio .maintain_aspect_ratio(true) #5267

dxshie opened this issue Oct 14, 2024 · 0 comments

Comments

@dxshie
Copy link

dxshie commented Oct 14, 2024

Is your feature request related to a problem? Please describe.
When loading an SVG you'll get a ImageSource which has a method called
.maintain_aspect_ratio(true) but that does not work for SVG's
if i try to paint an svg with .paint_at the image will be scaled depending on the size of the specified rect.
i want the image to be painted inside that rect centered and keeping it's aspect ratio

Describe the solution you'd like
if .maintain_aspect_ratio(true) would work for svg's as well then that would be great

Describe alternatives you've considered
using a png instead but then i have to convert my svg's and have bigger file sizes

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

1 participant