summaryrefslogtreecommitdiff
path: root/rpc/img_ops.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-18 15:48:38 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-18 15:48:38 +0200
commitd1d2347ae8b10da221662bd8e48da0cda72fe076 (patch)
tree26d2fc60aeaac83c355df9d30c9fde7f934799fe /rpc/img_ops.py
parent5367c1db7b63276363f00ba0f345a844fbc56ead (diff)
img opz
Diffstat (limited to 'rpc/img_ops.py')
-rw-r--r--rpc/img_ops.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/img_ops.py b/rpc/img_ops.py
index e86d91e..39d79d8 100644
--- a/rpc/img_ops.py
+++ b/rpc/img_ops.py
@@ -145,6 +145,8 @@ def mix_next_image(opt, data_opt, rpc_client, im, i, sequence, sequence_i):
img_to_send = Image.fromarray(next_im)
if img_to_send is not None:
+ if data_opt.resize_before_sending:
+ img_to_send.resize((256, 256), Image.BICUBIC)
rpc_client.send_pil_image("frame_{:05d}.png".format(i+1), meta, img_to_send, data_opt.output_format)
cv2.imwrite(tmp_path, next_img)