Android Question Take picture with good Quality and minimum size

Discussion in 'Android Questions' started by Sia, May 15, 2015.

  1. Sia

    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.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no way that a 720x1280 camera image size will be 150 bytes.
     
  3. Sia

    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 )
     

    Attached Files:

  4. Sia

    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.
     
  5. fixit30

    fixit30 Active Member Licensed User

    You need to call

    Code:
    CamEx.CommitParameters
    After you change the quality and resolution.
     
  6. Sia

    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
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    You should call CamEx.GetSupportedPictureSizes to find the supported sizes.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice