diff --git a/custom_components/codeproject_ai_object/image_processing.py b/custom_components/codeproject_ai_object/image_processing.py index e5c4169..e8ed1e2 100644 --- a/custom_components/codeproject_ai_object/image_processing.py +++ b/custom_components/codeproject_ai_object/image_processing.py @@ -344,7 +344,7 @@ def process_image(self, image): # resize image if different then default if self._scale != DEAULT_SCALE: newsize = (self._image_width * self._scale, self._image_width * self._scale) - self._image.thumbnail(newsize, Image.ANTIALIAS) + self._image.thumbnail(newsize, Image.LANCZOS) self._image_width, self._image_height = self._image.size with io.BytesIO() as output: self._image.save(output, format="JPEG")