Skip to content

Commit 57cbcfc

Browse files
committed
pbio/image/fonts: fix getdata being deprecated in Pillow 12.1.0.
1 parent 170aed6 commit 57cbcfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pbio/src/image/fontconvert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def load_image(self, filename: str) -> None:
154154
cols = (self.last - self.first + 1 + (rows - 1)) // rows
155155
gwidth = imwidth // cols
156156
gheight = self.size
157-
data = list(im.getdata())
157+
data = im.get_flattened_data()
158158

159159
self.line_height = gheight
160160
self.top_max = gheight

0 commit comments

Comments
 (0)