Android Question Take picture with good Quality and minimum size

Sia

Member
Licensed User
Hello,
I tried to take picture with CamerEXClass with good quality and minimum size but i can't decrease size less then 1.3M

My parameter :
CamEX.SetJpegQuality(1)
CamEX.SetPictureSize(720,1280)

i want take picture like Line Messenger ( naver line- www.line.me )
when i take picture with this messenger , i can see my picture detail is : 720,1280 and size is between 50 - 150 bytes !!!!!!!!!!!!
it's very good size but i can't take picture like this.

why ?
please help me
Thank you.
 

Sia

Member
Licensed User
Thankyou Erel,
but maybe I'm a bad explained.
size is second factor and Quality is first please see this pictures
( picnumber : 1431853286526.jpg ) when i tried take picture with line messenger, Quality of picture is good and picture size is 720x1280 and file size is 111KB

and
when i tried take picture with CamerEXClass, Quality of picture is good and picture size is 2448x3264 and file size is 1/67 MB ( i set parameter (720,1280)and etJpegQuality(1) but it's not work )
 

Attachments

Sia

Member
Licensed User
I think my problem is my cellphone ( sony z3 (20 megapixel) ) it's cannot take picture less then 1920,1080 . when i tried take picture with less then 1920,1080 size it take picture with 2448x3264 automatically.
It is my guess !
if you have any idea please tell me
thank you like always.
 

fixit30

Active Member
Licensed User
You need to call

B4X:
CamEx.CommitParameters
After you change the quality and resolution.
 

Sia

Member
Licensed User
Thank you but i called CommitParameters before you said it.

it's my code :

Sub camera1_Ready(Success As Boolean)
If Success Then
CamEX.SetJpegQuality(1)
'CamEX.SetPictureSize(5248,3936) '20MP
'CamEX.SetPictureSize(5248,2952) '15.5MP
'CamEX.SetPictureSize(2048,1536) '3MP
CamEX.SetPictureSize(1920,1080) '2MP
CamEX.CommitParameters
CamEX.StartPreview
Else
ToastMessageShow("Not Run",False)
End If
End Sub
 
Top