diff --git a/makehuman/lib/image_qt.py b/makehuman/lib/image_qt.py index 82dce6da..fd7f0bc2 100644 --- a/makehuman/lib/image_qt.py +++ b/makehuman/lib/image_qt.py @@ -61,7 +61,7 @@ def load(path): pixels = im.bits().asstring(h * w * 4) - pixels = np.fromstring(pixels, dtype=np.uint32).reshape((h, w)) + pixels = np.frombuffer(pixels, dtype=np.uint32).reshape((h, w)) del im a = (pixels >> 24).astype(np.uint8)