Any better Approach to govern the Image Size on Native Packaging

0
My native function is image Intensive , that capture nearly 70 Images. Based on the Camera Resolution, each image reaches to ~15 MB. So when the Sync in happens, the operation gets Timed out on relatively slower networks.Currently the TakePicture Widget that we are using is at setting "Original" the PictureQuality Property and the size to 200X200Any experiences on how much the Picture Quality degrades if reduced to "Low" and change in the Size ?Any thoughts if we can customize to transform the captured image to webp compressed form or use the jpeg Quality parameter to compress ?
asked
1 answers
0

Hi Murali,


In one of my Native projects, users needed to capture around 10 images per process across 7–10 modules. We faced a similar issue where high-resolution images made the sync slow and caused timeouts on weaker networks.


Instead of using the original image quality, I modified the Take Picture widget JavaScript to compress the captured image automatically. With the updated configuration, each image was reduced to around 200 KB by default without noticeable quality loss for our use case.


You can either use the modified Take Picture widget I have attached or update the JavaScript in your existing widget to apply compression and resize the image before it is stored/synced.


This is usually a better approach than syncing 15 MB images, especially when users may capture 70 images in a single process.

Take Picture JS - https://github.com/tech-by-krishna/Files/blob/main/TakePicture.mpk

answered