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

fix(camera): fix photo resizing on iOS #460

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

imhoffd
Copy link
Contributor

@imhoffd imhoffd commented Jun 4, 2021

Hi again 🤓

My earlier PR was made because resizing images on iOS by specifying width and height doesn't work, so I thought the logic was missing, but it turns out it just doesn't work.

To test the bug, just add width and height options to the TestApp Camera page. Notice it does not preserve the aspect ratio. This PR fixes that.

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, I couldn't reproduce at first because it's only a problem when width is bigger than height

@jcesarmobile jcesarmobile merged commit bc56e03 into ionic-team:main Jun 17, 2021
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.

None yet

2 participants