netrender:

thumbnails on the web interface (resized with imagemagick or compatible if present, fullsize otherwise)
Clicking on the "show" link shows the thumbnail associated with one frame. Clicking on a second one shows all frames in the range. Clicking on more frames extends the range. Clicking on a thumbnail (or on the show link of a visible thumbnail) hides all thumbnails.
This commit is contained in:
2010-01-08 02:33:20 +00:00
parent 28b1824fd0
commit ef8179f7cb
5 changed files with 95 additions and 8 deletions

View File

@@ -258,6 +258,12 @@ class RenderHandler(http.server.BaseHTTPRequestHandler):
bpy.ops.image.open(path = job.save_path + "%04d" % frame_number + ".exr")
img = bpy.data.images["%04d" % frame_number + ".exr"]
img.save(filename)
try:
process = subprocess.Popen(["convert", filename, "-resize", "300x300", filename])
process.wait()
except:
pass
f = open(filename, 'rb')
self.send_head(content = "image/jpeg")