33
Views
2
Comments
Working with images, is this the best way?
Application Type
Mobile

I have a mobile app where users capture photos, which are then synced and retained in local storage for 30 days. For some users, this can result in a significant amount of data, which may negatively impact app performance.

Would it be advisable to retain only a thumbnail version of each photo for the 30-day period and delete the full-size image after synchronization?

If so, what would be the most efficient method for generating these thumbnails?

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

We had a similar discussion recently. The focus was on what to save, not on how to shrink, but you should take a look.

I agree you should send the image away as soon as possible. If keeping a thumbnail is enough, do it.

Regarding the thumbnail, I would simply try Forge components. This seems to be the most downloaded. Give it a try.

https://www.outsystems.com/forge/component-overview/9813/create-thumbnail-o11




2023-05-24 05-40-51
Revathi S

Hello,

Step 1:

  • Use the Camera Plugin or Media Plugin to capture the photo.

  • Immediately upload the full-size image to the server or cloud storage (e.g., Amazon S3, Firebase, OutSystems server).

  • Once upload is confirmed, proceed to generate the thumbnail.

step 2:
Use the ImageTool Plugin (available from OutSystems Forge) to resize the image.

Store this thumbnail binary in local storage 

Step 3:

After successful thumbnail generation and server sync:

  • Use the File Plugin or Media Plugin to delete the full-size image from local file storage.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.