Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-pillow/Pillow
/ tobytes
Method
tobytes
Tests/test_image_array.py:66–67 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
64
return
len(self.img.tobytes())
65
66
def
tobytes(self) -> bytes:
67
return
self.img.tobytes()
68
69
def
test(mode: str) -> tuple[str, tuple[int, int], bool]:
70
i = im.convert(mode)
Callers
15
test_usm_accuracy
Function · 0.45
tobytes
Function · 0.45
test_palette_save_L
Function · 0.45
test_modify_after_resizing
Method · 0.45
test_g4_write
Method · 0.45
test_little_endian
Method · 0.45
test_big_endian
Method · 0.45
test_image_grab
Function · 0.45
__len__
Method · 0.45
test_sanity
Function · 0.45
test_quantize_dither_diff
Function · 0.45
test_quantize_kmeans
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected