Skip to content

Commit 12127e6

Browse files
davidmotsonDavid Motsonashvili
and
David Motsonashvili
authored
encodeBitmapToBase64Png -> encodeBitmapToBase64Jpeg (#6912)
Co-authored-by: David Motsonashvili <[email protected]>
1 parent 4fb4dfd commit 12127e6

File tree

1 file changed

+1
-1
lines changed
  • firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type

1 file changed

+1
-1
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Part.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ImagePart(public val image: Bitmap) : Part {
4949

5050
internal fun toInlineDataPart() =
5151
InlineDataPart(
52-
android.util.Base64.decode(encodeBitmapToBase64Png(image), BASE_64_FLAGS),
52+
android.util.Base64.decode(encodeBitmapToBase64Jpeg(image), BASE_64_FLAGS),
5353
"image/jpeg"
5454
)
5555
}

0 commit comments

Comments
 (0)