Skip to content

Comments

preserveAspectRatio bug-fixed#161

Open
HemendraKhatik wants to merge 1 commit intoExpensify:mainfrom
HemendraKhatik:preserveAspectRatio-bug-fix
Open

preserveAspectRatio bug-fixed#161
HemendraKhatik wants to merge 1 commit intoExpensify:mainfrom
HemendraKhatik:preserveAspectRatio-bug-fix

Conversation

@HemendraKhatik
Copy link

Problem

I was trying to build a QR code generator app where users can put their brand logo in the middle of the QR code. Everything was working fine for square images, but rectangle images were not looking as great as they should look.

For square images

For rectangle image

After digging into the code I was able to get the below result

Solution

Removed buggy line

preserveAspectRatio='xMidYMid slice'

removed buggy line preserveAspectRatio='xMidYMid slice'
@HemendraKhatik HemendraKhatik changed the title Update index.js preserveAspectRatio bug-fixed Jun 20, 2022
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