Image Input Capture

Is there a way (or a plan to add the ability) to capture an image using the image input component via javascript? I'm trying to build a photobooth app and the idea is to have users tap a "ready" button, then a photo is taken after a 5 second countdown. Everything works so far other than being able to programatically take a photo after opening the camera.

1 Like

Another observation while trying to develop a workaround for this problem:

Opening the device's camera using Image Input doesn't open the device's default camera, but an emulated version of the camera within Retool. This means that using a bluetooth 'shutter' also does not work because it just increases the device volume rather than taking a photo (most mobile devices treat volume up as a camera capture button). This means the only way I've found to take a photo using a mobile device's camera is to physically press the button on the screen.

Since we aren't able to create custom components on mobile, I also don't think we'd be able to create our own camera component to fix this problem so this project is just dead in the water - unless (hopefully) I'm wrong and there is a workaround that gets the job done.

Hello @Travis_Witt,

I love the use case!

You are correct, on mobile the "Image Input" component will open up an emulated version of the camera within Retool, which does unfortunately limit the flexibility for functionality :sweat:

I can definitely make a feature request to our mobile team to see if we can expand the camera API, so that the 'take phot' action can be triggered programmatically and not solely via user button press input.

1 Like

That would be a game changer. Thanks for taking a look into it!

1 Like