From 83122becdb77d8b309a197b99b793167f087fd21 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 8 Sep 2020 18:03:18 +0200 Subject: [PATCH] Applied degrees -> PIL rotation ID conversion to the output image --- platypush/plugins/camera/ir/mlx90640/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/camera/ir/mlx90640/__init__.py b/platypush/plugins/camera/ir/mlx90640/__init__.py index 91726a1bb5..f78f01ab00 100644 --- a/platypush/plugins/camera/ir/mlx90640/__init__.py +++ b/platypush/plugins/camera/ir/mlx90640/__init__.py @@ -103,7 +103,8 @@ class CameraIrMlx90640Plugin(CameraPlugin): size = tuple(i * self.scale_factor for i in size) image = image.resize(size, Image.ANTIALIAS) if self.rotate: - image = image.transpose(self.rotate) + rotate = self._rotate_values.get(int(self.rotate), 0) + image = image.transpose(rotate) temp = io.BytesIO() image.save(temp, format='jpg')