We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebbf1b9 commit 02bfa93Copy full SHA for 02bfa93
xcoder/images.py
@@ -24,7 +24,7 @@ def load_image_from_buffer(pixel_type: int, width: int, height: int) -> Image.Im
24
with open("pixel_buffer", "rb") as pixel_buffer:
25
pixel_buffer.read(1)
26
27
- return Image.frombytes(
+ return Image.frombuffer(
28
get_format_by_pixel_type(pixel_type), (width, height), pixel_buffer.read()
29
)
30
0 commit comments