nativescript-fresco icon indicating copy to clipboard operation
nativescript-fresco copied to clipboard

App exit with fresco lib, when load more than 3 images

Open slasho opened this issue 8 years ago • 2 comments

In my app I have fresco LIB but when images from camera are too bigs and load more than 3 images the app crashes/exits with no error, just closes the app

any idea??

nativescript │ 2.5.4 tns-core-modules │ 2.5.2 tns-android │ 2.5.0 nativescript-fresco │ ^1.0.16 │

slasho avatar Dec 21 '17 16:12 slasho

Hi @slasho

If the images are too big this can cause an Out of Memory exception. It seems like the native library has an option to resize the image before loading it in order to avoid the exception, but this option is not yet exposed by the plugin.

tgpetrov avatar Jan 09 '18 08:01 tgpetrov

Hi, the original library has the resize option, but not the nativescript version, so I ended using bitmapfactory in order to create a thumb image to show but the original to upload. it would be really helpfull to add the resize support to the nativescript version.

slasho avatar Jan 11 '18 11:01 slasho