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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user