I'm using Lumia Imaging SDK v2
to compress and crop images in my application. Recently we came across an issue related to compression and cropping of .wdp
format images; JpegRenderer.RenderAsync()
repeatedly crashes with that particular format type.
To fix this issue, we upgraded to SDK v3
, but on memory profiling of the application, I found that memory usage in SDK v3
is considerably higher than SDK v2
(see attached screenshots).
The peaks in v2
max out at 55 MB
but in v3
the peaks reach > 160 MB
.
In v2
I used StorageFileImageSource
to load images into memory. In v3
I use BifferImageSource
to do the same. I'm also using using
statements to dispose off datatypes implementing the IDisposable
.
Any reason why this memory bloat is observered in v3
? Any way I can avoid it? Also, is there any way to render .wdp
format images in v2
itself?