Editing images in Expo

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?

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

1 Like

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.

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