Strange PIL.Image.fromarray behaviour with numpy zeros and ones in mode='1'
问题 There should be some kinda puzzle for me. Accordingly to PIL documentation it has different image modes (as 1, L, 8, RGB, RGBA, and so on), but I was interested about mode '1' (1-bit pixels, black and white, stored with one pixel per byte). I've created 2 matrices size 100 by 100: first only zeroes (np.zeros) and second only ones (np.ones), expecting totally black image with ones, and white image with zeros in mode '1' for Black and White image only. Picture of result Question: what I'm doing