I’m building an app in which: a user takes a photo, then that photo must be sent to an external API, then the API’s output must be returned to Bubble ASAP. It is “slow” to do all of the following:
- upload a large image from the user’s device to Bubble
- transfer a large image from Bubble to the API
- process a large image on the API server
I have two questions:
A. Is it possible to have the photo size automatically reduced client-side before uploading to Bubble? This would be the best solution.
B. If not, is it possible for Bubble’s servers to generate a smaller image (after upload to Bubble), and send the smaller image to the API?
I’ve searched the Bubble forums and come up with nothing, aside from finding out that A is possible in HTML5, but I haven’t been able to find a workable solution in Bubble.
Reducing photo size before uploading to Bubble would seem to be a common use case, as smartphone photos seem to be increasing in size/resolution.