Skip to content

Commit f7c3415

Browse files
authored
Merge 4cc611b into 4fb4dfd
2 parents 4fb4dfd + 4cc611b commit f7c3415

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

Lines changed: 1 addition & 1 deletion
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)