Replies: 3 comments
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
This will be addressed in this feature request: ionic-team/capacitor-plugins#2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a feature request about adding options to the Camera plugin for setting max
width
/height
, alternatively a new option for keeping aspect ratio (e.g.keepRatio
).This is somewhat related to #217, in which @mlynch wrote:
What I need is a further extension of the scaling capabilities, I want to be able to limit the longest side of the photo, yet keep the aspect ratio. I've used the Cordova Camera plugin before, in which this was possible.
The problem now is that
width
andheight
, I'm sure no side is too long, but then the aspect ratio of the resulting image is changed.width
orheight
, the aspect ratio is retained, but then I don't know if my prescribed value is applied to the longer or shorter side of the image, since I don't know beforehand if the image is in portrait or landscape format.I don't know if it's good that
width
andheight
work like in the Cordova case, always retaining aspect ratio, or if it's better to have an additional option enforcing that aspect ratio is kept (e.g.keepRatio
). The latter alternative gives more flexibility, but maybe makes things too complicated.Let me know what you think of this!
Is this a feature that can be added?
Beta Was this translation helpful? Give feedback.
All reactions