How do I increase the resolution of photos with Taifun Camera extension? Whenever I take a photo I have to send it to a drive directory. But the resolution is very low, even if the quality parameter is set to 100.
This is how i store my image in my app after the picture is taken:
Please show your relevant blocks before taking a picture... especially how did you set width and height?
Also post the log from the After Picture event
Which device and Android version are you using for your tests? Did you try another device?
I'm using a Samsung Galaxy A50 with Android 11, the camera is 25MP and in the Camera app i can take a photo with the resolution that i said before. Should i try to change the camera used?
EDIT: the photo is rotated, so the width and height are reversed
The problem was the "image1" element. I shouldn't save the image taken to the Image element. The quality goes down if i do so. I converted the image to base 64 directly with the fileToStringBase64 function(extension: KIO4_Base641)
The changes are noticeable just by the dimension of the photo(1 MB to 5 MB).
Now in the afterPicture event I upload the photo in Drive, without using the "Image" component to store the image.
This keeps the image with the original resolution