title: how to convert 4d numpy array to PIL image?
body: <p>I'm doing some image machine learning by keras and if i put one picture converted to numpy.array in my model, it returns a 4d numpy array(predicted picture).</p>
  
  <p>I want to convert that array to image by using Image.fromarray in PIL library.
  but Image.fromarray only accept 2d array or 3d array. </p>
  
  <p>my predicted picture's array shape is (1, 256, 256, 3) 1 means number of data.
  so 1 is useless data for image. I want to convert it to(256,256,3) with not damaging image data. what should I do? Thanks for your time.</p>