Use higher jpeg quality by default

This commit is contained in:
Steven Robertson 2012-01-22 23:52:44 -05:00
parent c054c757bd
commit a524db2c1d
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ profiles = {
def save(rframe):
noalpha = rframe.buf[:,:,:3]
img = scipy.misc.toimage(noalpha, cmin=0, cmax=1)
img.save(rframe.idx, quality=95)
img.save(rframe.idx, quality=98)
print rframe.idx, rframe.gpu_time
def main(args, prof):

View File

@ -58,7 +58,7 @@ def push_frame(r, out):
noalpha = out.buf[:,:,:3]
img = scipy.misc.toimage(noalpha, cmin=0, cmax=1)
buf = StringIO()
img.save(buf, 'jpeg', quality=95)
img.save(buf, 'jpeg', quality=98)
buf.seek(0)
head = ' '.join([sidx, str(out.gpu_time), ftag])
r.rpush(sid + ':queue', head + '\0' + buf.read())