Hi All,
I need to know a way to make a compression of a picture taken by camera, before send it to my server.
Any clues?
Hi All,
I need to know a way to make a compression of a picture taken by camera, before send it to my server.
Any clues?
Thanks for replying @TIMAI2, most of them (I've seen one or two) are redirected to web.archive.org which does not have any link to download. Anyway, I'll searching in other places in order to find it. Thank you.
Thank you!!!
Do you have any example of use? My goal is to take a picture, compress it (or resize it) and after this convert to base64 string and save into a table from SQLite.
Try here:
target = file to be converted
output = destination and filename of converted file.
Thank you!! Will try it now.
Do you wish to put a limit on size? Like compress an image to 200 kb or less.
Hi, a simple way to resize the image taken is to use canvas,
Best Regards
Marco
..... that might degrade image quality, so best to make a small test app to see if it is satisfactory for the project.
You can reduce the byte size just by converting the camera's jpg image to webp.
An extension that can reduce the dimensions and compress, all quickly done without the App User having to make an input might be the way to go.
Exactly!!! What I need is to to do this, save it in SQLite and after send to a remote server (MySQL).
Another question is: How do you deal with saving images into a SQLite table? I tried to save the photo (in Base64 string) and I noticed that companion stops working. So what are your experiences about it?
Maybe I have to open a new post about it...
......I have never used it and I don't know the developer.
Developer reputation is important as extensions often require upgrades to work with new versions of Android and App Inventor.
You are right!!
That's something that could be best to test as an APK rather than Companion.
I'm testing now TIMAI2's extension.
Understood.
If you want to store the images as base64 then you could do this:
hmm, just been testing, extension does not appear to be working in companion for some reason!