Commits

Mikhail Korobov committed ab099e8

RGB.length -> mode.length

Comments (0)

Files changed (1)

src/psd_tools/user_api/pymaging_support.py

 
         image_bytes[index::num_channels] = array.array(str("B"), channel.data)
 
-    pixels = get_pixel_array(image_bytes, size[0], size[1], RGB.length)
+    pixels = get_pixel_array(image_bytes, size[0], size[1], mode.length)
 
     return Image(pixels, mode)