meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation

Home Page:http://camanjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad performance on Cordova iOS

quanghoc opened this issue · comments

I wrote simple app using camera and run Caman against the image URI from the Camera. It took forever like 10min to render. Even if I lower down resolution with 30% compression, still slow.

Anyone tried it?

Yes, I've the same problem.
With an iPhone 5s an effect require 15 seconds to be applied.

+1 I love the idea of using this in phonegap but its just too slow as is. So rad though. great work, hopefully we can figure out how to speed it up!

commented

+1, I'm seeing very slow performance on phonegap/cordova also

commented

any news ?

No, but I decided to abandoned CamanJS for mobile app

commented

@roysG , I emailed the creator of Camanjs back in Sept and here's what he said:

"Unfortunately it’s due to how CamanJS works. Mobile browsers don’t have the same level of power and optimization as desktop browsers do, so iterating over all of the image pixels doesn’t run as quickly. There’s no quick fix or way around this. The only thing you can do is reduce the size of the image before loading it into CamanJS, but that’s obviously suboptimal."

I found that http://girliemac.com/Filterous/ was a bit faster, but likely just because the filters being used are simpler than the ones in CamanJS. In my project I ultimately used Aviary. I think you need to do some native coding to get it to work w/ Phonegap though unless they've built out a plugin since then

Have anyone tried this?

http://plugins.cordova.io/#/package/vmodev.com.camera_filters

But iOS allows edit:true now so users can use camera filter. But it's a second step. Not ideal.

My other workaround is to do this in the server side and send back an array of filtered images.

What's the status of this issue? Are there any plans on supporting mobile browsers?
Since most traffic is coming from mobile users I believe mobile support should be a must-have for CamanJS.

Can anyone reccomend fast photoeditor for cordova app?