Hi,
In my app, the user can select a photo from the photo library and use it in the app. The photo is saved in the app’s Document Directory with the following code:
media.selectPhoto({ mediaSource = media.PhotoLibrary, listener = onComplete, origin = event.target.contentBounds, destination = { baseDir = documentsDirectory, filename = fileName }, permittedArrowDirections = { "any" }, })
The problem is that the image size of the saved test photo that I am using becomes 6 MB on the device, when in fact the image itself is only 1,9 MB. Is media.selectPhoto adding something to the image before saving it?