diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 14:29:39 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 14:29:39 +0200 |
| commit | aeb4073a1e3eb367cc732f37c43800d107ef84fc (patch) | |
| tree | c538e98fd932a9dd0532f256a4034e32025ea5b0 /test.py | |
| parent | 445d814c823fe8be25657223dd7b78a8ae74d60f (diff) | |
push
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,12 +64,12 @@ if __name__ == '__main__': tmp_im = im.copy() array_a = np.multiply(im, 1/frac) array_b = np.multiply(last_im, (frac-1)/frac) - im = np.add(array_a, array_b) + im = np.add(array_a, array_b).clip(0, 255) last_im = tmp_im else: last_im = im.copy() print(im.shape) - image_pil = Image.fromarray(im) + image_pil = Image.fromarray(im, mode='RGB') image_pil.save(save_path) os.rename(save_path, final_path) webpage.save() |
