--> --> -->
 
 
<type 'exceptions.IOError'>
Python 2.6.8: /usr/local/bin/python2.6
Mon Oct 23 16:56:14 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/static/epmgaa.media.clients.ellingtoncms.com/media/mogrify.py in ()
  171 </html>
  172 """
  173 
  174 if __name__ == '__main__':
  175     mogrify()
mogrify = <function mogrify>
 /var/www/static/epmgaa.media.clients.ellingtoncms.com/media/mogrify.py in mogrify()
  130 
  131     m = mogrifier.Mogrifier(original_file)
  132     m.apply_action_tuples(action_tuples)
  133     m.save(requested_path)
  134 
m = <mogrifier.Mogrifier instance>, m.apply_action_tuples = <bound method Mogrifier.apply_action_tuples of <mogrifier.Mogrifier instance>>, action_tuples = [('t', '750x550')]
 /var/www/static/common/mogrifier.py in apply_action_tuples(self=<mogrifier.Mogrifier instance>, actions=[('t', '750x550')])
   48             else:
   49                 args = [arg]
   50             getattr(self, action)(*args)
   51 
   52     def parse_size(self, size, hold_proportion=False):
builtin getattr = <built-in function getattr>, self = <mogrifier.Mogrifier instance>, action = 'thumbnail', args = ['750x550']
 /var/www/static/common/mogrifier.py in thumbnail(self=<mogrifier.Mogrifier instance>, size='750x550')
   90         """Thumbnail (maintaining dimensions)"""
   91         w, h = self.parse_size(size, True)
   92         self.im = ImageOps.fit(self.im, (w, h), Image.ANTIALIAS, centering=(0.0, 0.0))
   93         if self.im.mode != "P":
   94             sharpener = ImageEnhance.Sharpness(self.im)
self = <mogrifier.Mogrifier instance>, self.im = <JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>, global ImageOps = <module 'PIL.ImageOps' from '/usr/local/lib/python2.6/site-packages/PIL/ImageOps.pyc'>, ImageOps.fit = <function fit>, w = 750, h = 550, global Image = <module 'Image' from '/usr/local/lib/python2.6/site-packages/PIL/Image.pyc'>, Image.ANTIALIAS = 1, centering undefined
 /usr/local/lib/python2.6/site-packages/PIL/ImageOps.py in fit(image=<JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>, size=(750, 550), method=1, bleed=0.0, centering=[0.0, 0.0])
  327 
  328     out = image.crop(
  329         (leftSide, topSide, leftSide + cropWidth, topSide + cropHeight)
  330         )
  331 
leftSide = 0, topSide = 0, cropWidth = 1087, cropHeight = 797
 /usr/local/lib/python2.6/site-packages/PIL/Image.py in crop(self=<JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>, box=(0, 0, 1087, 797))
  761         "Crop region from image"
  762 
  763         self.load()
  764         if box is None:
  765             return self.copy()
self = <JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>, self.load = <bound method JpegImageFile.load of <JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>>
 /usr/local/lib/python2.6/site-packages/PIL/ImageFile.py in load(self=<JpegImagePlugin.JpegImageFile image mode=RGB size=1088x1600>)
  199                     if not s:
  200                         self.tile = []
  201                         raise IOError("image file is truncated (%d bytes not processed)" % len(b))
  202                     b = b + s
  203                     n, e = d.decode(b)
builtin IOError = <type 'exceptions.IOError'>, builtin len = <built-in function len>, b = '\x90\xac0\xa7'

<type 'exceptions.IOError'>: image file is truncated (4 bytes not processed)
      args = ('image file is truncated (4 bytes not processed)',)
      errno = None
      filename = None
      message = 'image file is truncated (4 bytes not processed)'
      strerror = None