From d1d2347ae8b10da221662bd8e48da0cda72fe076 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 18 Jun 2018 15:48:38 +0200 Subject: img opz --- rpc/img_ops.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpc/img_ops.py') 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) -- cgit v1.2.3-70-g09d2