Software Archive
Read-only legacy content
17061 Discussions

Bad image resize with Android using crosswalk Runtime 19 Embedded

mattias_c_
Beginner
345 Views

I'm using the accepted answer from this stackoverflow question http://stackoverflow.com/questions/19262141/resize-image-with-javascript-canvas-smoothly.

It works perfectly everywhere i try it. Except for Android crosswalk when images are resized from large images to canvas(3000+ pixel image down to 500 pixel canvas). When building with crosswalk the edges get jaggy and looks bad. I know this might be hard to get around but I fgured maybe somebody had any input on why the downscaling when using crosswalk is worse then when not using crosswalk. If so, is there anything I can change to downscale better?

(It works good in Android when not using crosswalk, incase i was unclear)

Any help or input is highly appreciated, thanks! 

EDIT: Just noticed that big images looks bad in crosswalk overall(not that i try to use this big images, just want to scale them down, but the problem might be related).

Steps to reproduce,

1. get a big image, like 4000x4000 pixels for instance.

2. Set as image src to an image tag

3. Compare crosswalk with default browser/runtime

 

 

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
345 Views

You might also try different versions of Crosswalk, that might make a difference.
 

0 Kudos
mattias_c_
Beginner
345 Views

Ye, tried them all between version 14-19. I Guess that there's not much i can do or do you have any suggestions? Is it possible to give the crosswalk team feedback somehow or something? kinda stuck, Thanks

0 Kudos
PaulF_IntelCorp
Employee
345 Views

You can provide feedback directly to the Crosswalk team. There is a Jira database, but I think you need to request permission to add to it > https://crosswalk-project.org/jira/ <

0 Kudos
Reply