Skip to content

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

Merged
dreampiggy merged 1 commit into
masterfrom
update_vector_resize_behavior
Dec 16, 2020
Merged

Update the calculation of bitmap image based on more complicated rules for most use cases#29
dreampiggy merged 1 commit into
masterfrom
update_vector_resize_behavior

Conversation

@dreampiggy
Copy link
Copy Markdown
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