Expo Image editor from ImagePicker API - react-native

Exponents ImagePicker API lets you pick an image from your library. After picking an image it opens the image in an image editor that lets you edit the image. Is there any way to skip the image picking part and directly go to the editor screen?
Like I give in an image URI and it opens that image in the image editor screen of expo.

Set allowsEditing={false}. See here for details.
allowsEditing (boolean) -- Whether to show a UI to edit the
image/video after it is picked. Images: On Android the user can crop
and rotate the image and on iOS simply crop it. Videos: On iOS user
can trim the video. Defaults to false.

Related

How to run camera on page in preview mode?

I create an application for working with the camera, I just can not figure out how to call the camera, so that it was in preview mode.
In the documentation I read, there only a photo can be done, but you can not bring the camera to the page!
cordova-plugin-camera
There is an example of an application where the camera is displayed on the page in preview mode:
Here on the background of the page the camera is shown and it is possible to work with camera
Is there anyone among you who worked with the camera, if so, tell me how or give advice. Thank you!
Ps: sorry for bad english.
I think you are looking for this plugin. It is built to display a camera preview in HTML. Please be aware that the authors of the plugin stated themselfes that the plugin is still under constant development so there might be some things that do not work as expected.
The plugin offers following features:
Start a camera preview from HTML code.
Maintain HTML interactivity.
Drag the preview box.
Set camera color effect.
Send the preview box to back of the HTML content.
Set a custom position for the camera preview box.
Set a custom size for the preview box.
Set a custom alpha for the preview box.
Set the focus mode, zoom, color effects, exposure mode, white balance mode and exposure compensation
Tap to focus

codename one how to place component on an image viewer that capture camera?

I have a GUI Builder created form in codename one, how can i open the camera in a resizable view at the show() of the form and place container like text area or anything else on it?
I saw the camera demo but i don't understand it very well because on the simulator it open a file picker.
My purpose is to create a form with a camera resizable capture when you have two labels and you can also write or paint on your photo used in background, I do this only for hobby and fun, i do what i can, Any advice is well accepted, thank you for the attenction
You can now place a component on top of a camera view with a new cn1lib: https://github.com/codenameone/CameraKitCodenameOne
Original answer below:
I'm assuming you mean overlay on a live camera view. While this is possible it's not supported at this time in the Java API layer.
If you mean grabbing a photo and setting it as a background for the form for overlay you can create an image with the result of the Capture API and use setBgImage() to set that image to the background of a component or form.

Open a saved image in camera roll programmatically - iOS

I am able to cature image (using AVFoundation), save image using assets library and save its asset url, open the camera roll programmatically using image picker.
What I want to do is, when I click on the a particular button, the last saved image of the camera roll should show up as if I had opened the camera roll and clicked on that image. I don't want to return the image object back to the program, i just want have a look at the image. And if I swipe on the screen, the camera roll images should scroll.
Also, can I do this using the saved asset url instead of just accessing the last saved image?
Also, If I press cancel there, i might want to return to the camera roll instead of my view controller. Would that be possible?
(I tried to search but i don't think i have the right keywords)
similar question here : Open camera roll on an exact photo
But no answer.

Cropping image into popup?

How to crop an image coming from server into popup? I have image coming from web service and showing it into a popup on a click on a table. I want to add cropping functionality into it. How can I do it??
There are a number of open source image cropping libraries on cocoacontrols.com Here's one that replicates Apple's crop image feature. You can then display the editing view controller in a popover when the user selects the row.

How do I upload custom images to my tab bar in the iPhone SDK?

How do I upload custom images to my tab bar in the iPhone SDK?
I uploaded an image, added it to resources, and tried to make it the image for a tabbar item. This is what happened:
http://www.mediafire.com/download.php?tmn1xtnmjhz
Thanks
Tab bar icons should be .png files, about 30px square, and should be 24-bit with an alpha channel. All you do is make the image completely transparent except for the part you want to appear as the icon.
You can see some examples here: http://glyphish.com/