2013-06-11, 09:13
I have done some debugging now, so here it goes:
With pillow:
Debug with the PIL package that comes with the installation:
Hope this will tell you anything
With pillow:
Code:
192.168.2.2 - ****** [11/Jun/2013:07:08:14] "GET /xbmc/GetThumb?w=100&h=150&thumb=image%3A%2F%2Fhttp%253a%252f%252fcf2.imgobject.com%252ft%252fp%252foriginal%252fn8ob0xjLIjnvqgWY57rPQYOw7t.jpg%2F HTTP/1.1" 500 1815 "http://192.168.2.5:8014/xbmc/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36"
[11/Jun/2013:07:08:14] HTTP
Request Headers:
AUTHORIZATION: Digest username="******", realm="HTPC Manager", nonce="1370934388:2ea5243218022edc23b96b2c2ba3ef6a", uri="/xbmc/GetThumb?w=100&h=150&thumb=image%3A%2F%2Fhttp%253a%252f%252fcf2.imgobject.com%252ft%252fp%252foriginal%252fkJQPygYB8aNEevZZHRifyYrAdU9.jpg%2F", algorithm=MD5, response="2843249b5319ee4512d52d62fd7a5610", qop=auth, nc=00000082, cnonce="ec0537c4a7183fbc"
REFERER: http://192.168.2.5:8014/xbmc/
HOST: 192.168.2.5:8014
CONNECTION: keep-alive
Remote-Addr: 192.168.2.2
ACCEPT: */*
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
COOKIE: active_tab=%23movies; plushQueuePerPage=10; plushHistPerPage=20; sdmenu_my_menu=0000000001; wanted_view2=details; advanced_toggle_checked=0; manage_view2=details; plushContainerWidth=100%25; plushNoTopMenu=0; snatched_view2=list; soon_view2=thumbs; late_view2=list; SpryMedia_DataTables_artist_table_home=%7B%22iCreate%22%3A1370932865769%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A50%2C%22aaSorting%22%3A%5B%5B0%2C%22asc%22%2C0%5D%5D%2C%22oSearch%22%3A%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%22aoSearchCols%22%3A%5B%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%5D%2C%22abVisCols%22%3A%5Btrue%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D
ACCEPT-LANGUAGE: nb,en-US;q=0.8,en;q=0.6,no;q=0.4,nn;q=0.2
DNT: 1
ACCEPT-ENCODING: gzip,deflate,sdch
[11/Jun/2013:07:08:14] HTTP Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
return get_image(url, h, w, o, self.auth())
File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
download_image(url, image, auth)
File "/home/.htpc-manager/htpc/proxy.py", line 52, in download_image
im = Image.open(data)
File "/usr/local/lib/python2.6/dist-packages/PIL/Image.py", line 2020, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
Debug with the PIL package that comes with the installation:
Code:
=%7B%22iCreate%22%3A1370932865769%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A50%2C%22aaSorting%22%3A%5B%5B0%2C%22asc%22%2C0%5D%5D%2C%22oSearch%22%3A%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%22aoSearchCols%22%3A%5B%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%5D%2C%22abVisCols%22%3A%5Btrue%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D
ACCEPT-LANGUAGE: nb,en-US;q=0.8,en;q=0.6,no;q=0.4,nn;q=0.2
DNT: 1
ACCEPT-ENCODING: gzip,deflate,sdch
[11/Jun/2013:07:18:58] HTTP Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
return get_image(url, h, w, o, self.auth())
File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
download_image(url, image, auth)
File "/home/.htpc-manager/htpc/proxy.py", line 53, in download_image
im.save(dest + '.png', 'PNG')
File "/home/.htpc-manager/libs/PIL/Image.py", line 1439, in save
save_handler(self, fp, filename)
File "/home/.htpc-manager/libs/PIL/PngImagePlugin.py", line 572, in _save
ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
File "/home/.htpc-manager/libs/PIL/ImageFile.py", line 481, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File "/home/.htpc-manager/libs/PIL/Image.py", line 399, in _getencoder
return apply(encoder, (mode,) + args + extra)
TypeError: an integer is required
[11/Jun/2013:07:18:58] HTTP Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
return get_image(url, h, w, o, self.auth())
File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
download_image(url, image, auth)
File "/home/.htpc-manager/htpc/proxy.py", line 53, in download_image
im.save(dest + '.png', 'PNG')
File "/home/.htpc-manager/libs/PIL/Image.py", line 1439, in save
save_handler(self, fp, filename)
File "/home/.htpc-manager/libs/PIL/PngImagePlugin.py", line 572, in _save
ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
File "/home/.htpc-manager/libs/PIL/ImageFile.py", line 481, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File "/home/.htpc-manager/libs/PIL/Image.py", line 399, in _getencoder
return apply(encoder, (mode,) + args + extra)
TypeError: an integer is required
Hope this will tell you anything