Skip to content

Commit 1a5be52

Browse files
authored
fix incorrect func calls witihin Pixmap().pillowData()
Trying to use `pillowData("JPEG")` and I got some errors. The proposed changes allow for expected usage of `pillowData()`
1 parent c207aaa commit 1a5be52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fitz/fitz.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6661,8 +6661,8 @@ def pillowData(self, *args, **kwargs):
66616661
"""
66626662
from io import BytesIO
66636663
bytes_out = BytesIO()
6664-
self.pillowSave(bytes_out, *args, **kwargs)
6665-
return bytes_out.get_value()
6664+
self.pillowWrite(bytes_out, *args, **kwargs)
6665+
return bytes_out.getvalue()
66666666
66676667
%}
66686668
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)