MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _make_image_bytes

Function _make_image_bytes

tests/test_veo_lite_support.py:15–19  ·  view source on GitHub ↗
(size: tuple[int, int], color: str = "white")

Source from the content-addressed store, hash-verified

13
14
15def _make_image_bytes(size: tuple[int, int], color: str = "white") -> bytes:
16 image = Image.new("RGB", size, color=color)
17 buffer = BytesIO()
18 image.save(buffer, format="PNG")
19 return buffer.getvalue()
20
21
22class VeoLiteModelResolverTests(unittest.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected