incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <>
Subject [jira] [Commented] (CB-940) Android image compression algorithm uses too much memory.
Date Wed, 20 Jun 2012 18:24:43 GMT


Jukka Zitting commented on CB-940:

If I remember correctly, the now inactive Apache Harmony codebase has some JPEG processing
code that might be useful. Also the Commons Imaging codebase (previously Sanselan) has quite
a bit of JPEG code though AFAIUI no compression support. Also
might contain some useful bits. Porting parts of the OpenJPEG codebase (
to Java might also be an option.

If none of these or other sources prove useful, instead of implementing JPEG compression in
Cordova we would probably be better served by contributing such code to Commons Imaging and
just reusing the code from there, as that'll likely be a better place for such code to prosper.
> Android image compression algorithm uses too much memory.
> ---------------------------------------------------------
>                 Key: CB-940
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 0.9.5, 0.9.6, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.6.1,
1.7.0, 1.8.0, 1.8.1
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
> We need to write our own version of jpg compression algorithm as the one that Android
has implemented in Bitmap.compress requires the entire image to be loaded in memory which
can cause out of memory errors.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message