Camera doesn't refocus in ImageInput component

I'm creating an app that involves taking some confirmation photos and uploading them, but when testing the Image Input component I've noticed that the camera in Retool does not refocus or let you control focus. The camera will acquire focus when you first open the component, but after that it will not refocus when pointed at an object at a different distance. You can technically get around this by switching to the front camera and then back to the rear camera, though this is not a great solution. There is also no tap-to-refocus functionality as there is with many mobile camera applications.

Is this a bug or a feature that has to be added? This would be a great quality of life upgrade to have for image input components.

This is on an iPhone 14.

1 Like

Hey @cirno! I've experienced a similar issue. Sometimes when I open the camera, it’s out of focus and won’t refocus no matter what I do. I have to kill the app and reopen it for it to work properly.

Does it work fine after you kill the app, too? If so, looks like we’ve both hit the same bug! :sweat_smile:

1 Like

Hey @Derek_Watts! From what I've seen it seems like anything that restarts the camera component (switching cameras, killing the app, closing the camera and reopening) will make it work as it only seems to acquire focus on startup.

Easy way to make it obvious is to startup the camera with it pointing at something very close, then trying to point it at anything further away. Everything will be completely out of focus as long as the camera remains open--even taking a photo won't reset the focus!

(On a slightly different note, having the ability to use your phone's flash could be nice too :wink: )

1 Like

@cirno so this is a legit bug then - I have the same issue. iPhone 13 Pro.

1 Like

Thanks everyone for sharing your concerns. We're working on a way to fix this this and I've linked this conversation to the request. Will post here will any updates as they come.

3 Likes

This should be fixed!

3 Likes

@AbbeyHernandez this is not fixed.

To recreate, simply open the camera when placed on your desk, then pick it up and try to focus on something further away. It will not refocus.

1 Like

My mistake @Derek_Watts. A fix has been made, but has not been deployed yet. Most likely this will happen sometime next week. I'll comment here when it's available!

2 Likes

Is there an update on this? It's hampering major functionality within my tool.

Thanks

Hi @Kaman_Doyle this should be resolved starting on cloud 3.120. Are you still experiencing problems with the focus of the imageInput component?

Hey @AbbeyHernandez

I am still experiencing this on mobile, I am updated on the iPhone app but the current version is v3.119.0.

You should see this resolved within a few days!

Hi Abbey,
Focus is still blurry (I'm at v3.129.0).
When the focus has to change, it always take "1 blurry picture" to "make" the focus happen.


Please could you provide us a date for resolution of this problem ? This disrupts our business.

Thank you for your comprehension

Hey @Matthieu_Brabant, you are correct this hasn't been resolved yet.

@AbbeyHernandez any word? Thanks so much

Hi all! Looks like this should be out in cloud 3.130+. We understand the urgency, apologies for the wait!