Skip to content

Commit d78d871

Browse files
committed
link to references
Change-Id: I49b9ab206ade37a8a5535b21fa7fdf62a0c569d2
1 parent 16c10e7 commit d78d871

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

google/generativeai/types/content_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373

7474

7575
def pil_to_blob(img):
76+
# References:
77+
# - file formats: https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html
78+
# - image modes: https://pillow.readthedocs.io/en/stable/handbook/concepts.html#modes
79+
7680
bytesio = io.BytesIO()
7781

7882
get_mime = getattr(img, "get_format_mimetype", None)

0 commit comments

Comments
 (0)