Android Question Camera Image Size

attenzi0ne

Member
Licensed User
Longtime User
Hello

I am having issues with the size of images I take with CameraEx.
The size of the image at full quality (640*480, .SetJpegQuality = 100) is approx. 250kb
When I change the SetJpegQuality to 10 it comes down to 170kb
I tried the RSImageProcessing library .compress function but still the same size.

My problem is, when I download the picture and run it through Adobe Photoshop's "save for web", the image size becomes 25kb and there is no visible decrease in image quality. Is there a way to achieve this on b4a? SetJpegQuality is not helping because even when it is set to 10 the filesize is 170kb.

I believe it has something to do with resampling the bitmap
 
Last edited:

attenzi0ne

Member
Licensed User
Longtime User
Well after a night long research I found the answer to my question
What I asked is done by optimizing the Huffman tables. It is a "lossless" technique. It has nothing to do with the "jpeg quality" settings.
It provides up to 80% reduced size in jpeg, without any quality loss

but I couldnt find any java/android samples yet regarding this
 
Last edited:
Upvote 0
Top