Add maxWidth, maxHeight on image picker / camera
complete
Brent Vatne
complete
Brent Vatne
you can use ImageManipulator to do what you need to the image after you pick it: https://docs.expo.io/versions/latest/sdk/imagemanipulator.html
Brent Vatne
to be clear, you want to be able to resize the image to a given maxWidth and maxHeight, and maintain aspect ratio?
Xavier Carpentier
Brent Vatne: yes, maintain aspect ratio.
I think like react-native-image-picker does:
and
Xavier Carpentier
Brent Vatne: Any news?
Brent Vatne
Xavier Carpentier: we're adding an image manipulation api that you can use to do this, it'll come in sdk24.
Brent Vatne
here's what it looks like: https://github.com/expo/expo-sdk/blob/master/src/ImageManipulator.js
Maximilian Lindsey
Brent Vatne: This is great news! When can we expect sdk24 to be aprox. released?
Xavier Carpentier
Brent Vatne: awesome ! 🎉
Lee Brindley
This is pretty much seen as a standard feature IMO, didn't realise it wasn't included in the EXPO SDK. Definitely worth implementing.