This is a migrated thread and some comments may be shown as answers.

ImageEditor not work with image large size

16 Answers 124 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tuan
Top achievements
Rank 1
Tuan asked on 01 May 2014, 06:58 AM
Orientation rotate, color fix not work with image large size. I try Image with resolution 3264x1836 and get error 
"Insufficient memory to continue the execution of the program."
I used emulator, HTC 8x test. How to fix it.
My project: http://www.mediafire.com/download/5hk27tzhu0wflx2/TEST_ImageEditor.rar
Thank.

16 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 06 May 2014, 09:44 AM
Hi Tuan,
I've posted an answer to your other support thread. Take a look at it and let us know what you think.

Regards,
Kiril Stanoev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 23 May 2014, 04:53 AM
I having this issue too. May I know which other thread that I can refer to or if it's support ticket how can I resolve this? Thanks.
0
Victor
Telerik team
answered on 23 May 2014, 07:12 AM
Hello Victor,

Thanks for writing.
RadImageEditor is not designed for editing huge files since the resources on a phone a extremely limited. Please downscale your image to an appropriate size first and then proceed with editing.

Thank you for understanding.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 05 Jun 2014, 12:06 PM
Hi,
Can you guys give us information about limitations? What is the maximum resolution or size and etc. The picture 3264x1836 should take only about 24Mb in memory (w * h  * 4  / 1024 / 1024). I don't think its a problem to hold it on WP apps. Right now the limit is 180Mb for low memory devices. 

Thanks in advance,
Victor
0
Tsvyatko
Telerik team
answered on 10 Jun 2014, 01:11 PM
Hello Victor,

Thank you for bringing our attention to this. Our preliminary investigations on this matter shown that even the image itself does not exceed the minimum memory, when transformation starts to be applied the framework consider the memory usage excesive and throws out of memory exception. We will dig deeper into these issues in order to determine better memory handling in such scenarios.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 10 Jun 2014, 04:48 PM
Hi,
I`v just tried to load image 4312x2868 through WriteableBitmap and control crashes with Insufficient memory exception or with unexpected range if i delete all tools. I know there is limitation on texture on WP for 4000px but for live-view looks like control create a small image for preview and this can not be bottleneck.

BitmapImage have a nice properties decodePixelHeight and decodePixelWidth using this properties you can resize image without full unpacking it in memory. I think you need take a look on it.  
0
Tsvyatko
Telerik team
answered on 13 Jun 2014, 08:47 AM
Hello Victor,

Thank you for digging into this matter. We have looked into the issue. You are correct - the thumbnail we use for preview is much smaller than the original and it is not the bottleneck. The issue occurs when processing the original image as we try to preserve the original size. In addition when rotating the image we use slightly bigger bitmap to render the image correctly. 

We will consider evaluating the image size and if the image when needed scale it down automatically. This will result in creating different, smaller image than the input, so we will add it as an option.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 05 Jul 2014, 12:47 PM
Hi,
Any news on that issue?   By the way Nokia Imaging SDK have a nice high perf tools for rotation and etc and optimized on low memory devices maybe you will look at it and use it http://developer.nokia.com/lumia/nokia-apis/imaging ? It have nice feature to reframe image and work with partials of image to decrease of using a lot memory.

-Victor
0
Tsvyatko
Telerik team
answered on 10 Jul 2014, 07:10 AM
Hi Victor,

we have evaluated using Nokia Imaging SDK and it is in our backlog for future releases. We will do our best to add this in our next official release. 

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 17 Jul 2014, 11:42 AM
Awesome. I'm glad that you guys can listen community thanks for that.

If you can give us any approximate dates for this release it will be fantastic.
0
Ivaylo Gergov
Telerik team
answered on 22 Jul 2014, 09:54 AM
Hi Victor,

We will do our best to include this in our next official release which will be available at the end of October.

Let me know should you have any other questions or suggestions.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 13 Aug 2014, 05:10 AM
So when  the official release is available by October, do we need to include Nokia Imaging SDK in the project reference?

PS: There are 3 Victors in this thread. What are the changes :)
0
Victor
Top achievements
Rank 1
answered on 13 Aug 2014, 07:59 AM
This is the stack trace data for my app from Windows Phone Dev Center. Most of the errors are related to out of memory exception.
0
Tsvyatko
Telerik team
answered on 18 Aug 2014, 07:49 AM
Hi,

our official release is scheduled for the end of October. Meanwhile we have considering preparing blogpost describing how Nokia Imaging SDK can be utilized to extend our current ImageEditor. Once it is published we will post link in this thread.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 14 Dec 2014, 11:29 AM
Hi,
Any news here guys?
0
Ivaylo Gergov
Telerik team
answered on 18 Dec 2014, 10:11 AM
Hi Victor,

Here is the link to the mentioned blog post : http://blogs.telerik.com/windowsphoneteam/posts/14-11-25/leveraging-the-nokia-imaging-sdk-in-your-windows-phone-app.


Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageEditor
Asked by
Tuan
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Victor
Top achievements
Rank 1
Victor
Telerik team
Victor
Top achievements
Rank 1
Tsvyatko
Telerik team
Ivaylo Gergov
Telerik team
Share this question
or