Hallo,
i´m using the Lib Camera (version: 2.20) with the code
and
On my Smartphone (Samsung Galaxy Note) everything works good. But with the Phone of my Boss (Samsung Galaxy S4) it didn´t...
On the S4 i got a damaged file written to the SD-Card. The file is 2,72mb for an jpg of 960x1280 Pixels!?
See sample. THIS Picture in Attachment is resized from 960x1280 to 960x1280 (grins) with irfanview. THIS jpg is only 98kb in size.
What can i do to fix this problem? Too much filesize with the jpg and it is not what i have a picture made of.
Any help or suggestions are welcome
Thanx in advance
PS: I´m using CameraEx-Class 1.20 if this is important...
i´m using the Lib Camera (version: 2.20) with the code
B4X:
Dim w=1280,h=960 As Int
camEx.SetPictureSize(w, h)
ToastMessageShow("Bildgröße: " & 1280 & "x" & 960& " Pixel", False)
camEx.SetJpegQuality(100)
camEx.SetFocusMode("auto")
camEx.CommitParameters
camEx.StartPreview
and
B4X:
Sub Camera1_PictureTaken (Data() As Byte)
camEx.StopPreview
Dim b64 As Base64
Dim hex As ByteConverter
Dim dest As String
dest = randomname(8)&".jpg"
Do While File.Exists(File.DirRootExternal, dest) = True
dest = randomname(8)&".jpg"
Loop
dummybild = hex.HexFromBytes(Data)
Dim dir As String = File.DirRootExternal
camEx.SavePictureToFile(Data, dir, dest)
On my Smartphone (Samsung Galaxy Note) everything works good. But with the Phone of my Boss (Samsung Galaxy S4) it didn´t...
On the S4 i got a damaged file written to the SD-Card. The file is 2,72mb for an jpg of 960x1280 Pixels!?
See sample. THIS Picture in Attachment is resized from 960x1280 to 960x1280 (grins) with irfanview. THIS jpg is only 98kb in size.
What can i do to fix this problem? Too much filesize with the jpg and it is not what i have a picture made of.
Any help or suggestions are welcome
Thanx in advance
PS: I´m using CameraEx-Class 1.20 if this is important...
Attachments
Last edited: