Editing images in Expo


#1

I’ve been using Expo’s ImagePicker.launchCameraAsync to take photos and crop them before saving. But now I have written my own camera component in the same app and would like to connect the image cropping part with my camera component. Is it possible to get only the image editor part from launchCameraAsync? There is launchImageLibrary but that requires a step of picking an image. What I would like is, I take a picture from my camera component and the result uri I pass to one of Expo’s API which launches the image editor with that image. Is that possible?


#2

Hey @sisdk,

I think the ImageManipulator API may be the best solution for what you want.

https://docs.expo.io/versions/v29.0.0/sdk/imagemanipulator

Cheers,

Adam


#3

Hi @adamjnav,
The problem with ImageManipulator is that it doesn’t include the crop UI. Only APIs behind the UI. It would be great if there was some way to get the UI too.


closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.