title: Converting An Array to Image
body: <p>I am having an array of <code>64*64</code> consists of <code>0</code> and <code>1</code>. How do i convert this array to image and save it ? </p>
  
  <pre><code>from PIL import Image
  img = Image.fromarray(data , 'RGB') // 
  img.save('my.png')
  img.show()
  </code></pre>
  
  <p>'Removing RGB is not giving me expected result All 1's array is also giving me black'<br></p>
  
  <p>The above code is giving me error ,  i can not convert it, how to convert it if i want to lower resolution image i.e <code>16*16</code></p>