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

Update the calculation of bitmap image based on more complicated rules for most use cases #29

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

dreampiggy
Copy link
Collaborator

@dreampiggy dreampiggy commented Dec 14, 2020

Extend from #28

Rules here:

For example, given a SVG image which original size is (40,50):

preserve aspect ratio width height effect
true 50 50 (40,50)
true 0 100 (80,100)
true 20 0 (20,25)
true 0 0 (40,50)
false 50 50 (50,50)
false 0 100 (40,100)
false 20 0 (20,50)
false 0 0 (40,50)

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

Successfully merging this pull request may close these issues.

1 participant