A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /opt/local/production/www/htdocs/thumbnail.fcgi in app(environ={'DOCUMENT_ROOT': '/opt/local/production/www/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'static.gigapan.org', 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Geck...patible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_VIA': '1.1 squid-proxy-5b96dc6d46-gvw6r (squid/6.13)', 'HTTP_X_FORWARDED_FOR': '10.1.77.158', ...}, start_response=<function start_response at 0x1bae9b0>) |
317 new_width, new_height = best_fit(int(width), int(height), int(outputwidth),int(outputheight))
|
318 size = (int(outputwidth), int(outputheight))
|
319 thumbnail.render(prefix, suffix, int(fullwidth), int(fullheight), int(nlevels), tmpfile, int(new_width), int(new_height), float(left), float(top), float(width), float(height))
|
320 image = Image.open(tmpfile)
|
321 background = Image.new('RGB', size, (0, 0, 0))
|
| global thumbnail = <module 'thumbnail' from '/usr1/local/production/thumbnails/thumbnail.py'>, thumbnail.render = <function render at 0x1a50de8>, prefix = '/usr0/gigapans/19642', suffix = '.jpg', builtin int = <type 'int'>, fullwidth = 23507, fullheight = 2351, nlevels = 8, tmpfile = '/usr0/gigapans/19642/images/tmpa2dcbcc9e60c1e562c5930cbf9be5b5e.jpg', new_width = 400, new_height = 41, builtin float = <type 'float'>, left = 0, top = 0, width = 23507, height = 2351 |
| /usr1/local/production/thumbnails/thumbnail.py in render(prefix='/usr0/gigapans/19642', suffix='.jpg', fullwidth=23507, fullheight=2351, nlevels=8, outputfilename='/usr0/gigapans/19642/images/tmpa2dcbcc9e60c1e562c5930cbf9be5b5e.jpg', outputwidth=400, outputheight=41, left=0.0, top=0.0, width=23507.0, height=2351.0) |
93 Image.ANTIALIAS)
|
94 final_img = resized_img
|
95 final_img.save(outputfilename, "JPEG", quality=90)
|
96
|
97
|
| final_img = <Image.Image instance at 0x1c14368>, final_img.save = <bound method Image.save of <Image.Image instance at 0x1c14368>>, outputfilename = '/usr0/gigapans/19642/images/tmpa2dcbcc9e60c1e562c5930cbf9be5b5e.jpg', quality undefined |