MCPcopy
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_accuracyFunction · 0.45
tobytesFunction · 0.45
test_palette_save_LFunction · 0.45
test_g4_writeMethod · 0.45
test_little_endianMethod · 0.45
test_big_endianMethod · 0.45
test_image_grabFunction · 0.45
__len__Method · 0.45
test_sanityFunction · 0.45
test_quantize_kmeansFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected