Commits

J.A. Roberts Tunney  committed 5f4982b

use img.getpixel() to support PIL <= 1.1.6

  • Participants
  • Parent commits 5b842ab

Comments (0)

Files changed (1)

File fabulous/image.py

         """
         (width, height) = self.img.size
         bgcolor = utils.term.bgcolor
-        pix = self.img.load()
+        self.img.load()
         for y in xrange(height):
             for x in xrange(width):
-                rgba = pix[x, y]
+                rgba = self.img.getpixel((x, y))
                 if len(rgba) == 4 and rgba[3] == 0:
                     yield None
                 elif len(rgba) == 3 or rgba[3] == 255: