title: 'Image' object has no attribute 'read'
body: <p>I want to use the images stored in a dictionary, to convert it to a GIF. The images in the dictionary is like this type:</p>
  
  <pre><code>people={
      1: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x10962C510&gt;,
      2: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x1098D7F90&gt;,
      3: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x1098D7F50&gt;}
  </code></pre>
  
  <p>I think is a Pillow image. But why do I always get this error:</p>
  
  <blockquote>
    <p>'Image' object has no attribute 'read'</p>
  </blockquote>
  
  <p>What does it mean?</p>
  
  <p>The full error:</p>
  
  <pre><code>File "/***view.py", line 266, in convert_gif
      new_frame = Image.open(imgs[count])
  File "/***/python3.7/site-packages/PIL/Image.py", line 2775, in open
      prefix = fp.read(16)
  AttributeError: 'Image' object has no attribute 'read' –
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>self._images = { 
      people: {
          1: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x10962C510&gt;, 
          2: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x1098D7F90&gt;, 
          3: &lt;PIL.Image.Image image mode=RGBA size=16x16 at 0x1098D7F50&gt;
      }
  }
  
  def convert_gif(self):
  
      imgs = self._images["people"]
      number = len(imgs)
      count=1
  
      while count &lt;= number:
          new_frame = Image.open(imgs[count])
          self._frames.append(new_frame)
          count += 1
  
      self._frames[0].save('png_to_gif.gif', format='GIF', append_images=self._frames[1:], save_all=True, duration=300, loop=0)
  </code></pre>