Quantcast
Viewing all articles
Browse latest Browse all 8068

Android 4.0+ Image Compression

Is there a way to compress images on Android devices using 4.0 or greater? I've tried using the ImageFactory:

var compressedImage = ImageFactory.compress(event.media, 0.2);
f.write(compressedImage);
And that code works great for iOS, but it does not compress on Android and I've added the Android ImageFactory 2.2.1 module to my Alloy app. The code runs fine without errors, but the file size does not change.

Any help is appreciated. Thanks.


Viewing all articles
Browse latest Browse all 8068

Trending Articles