Saving Image - Compress - Convert to base64

There are several extensions available for resizing your image to help reduce the size of the base64 string.

Also see here:

When you say AI, do you mean AppInventor, or that other thing?