MLECO-3802: [Maintenance] Remove Pillow warning
- Image.Resampling.BILINEAR replace deprecated Image.BILINEAR
- Trivial documentation fixes
Change-Id: Ia75af2d2bf171085d4a0a2c472f0e3f94dbdc5b9
Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
diff --git a/scripts/py/gen_rgb_cpp.py b/scripts/py/gen_rgb_cpp.py
index 85ae071..b8d85ee 100644
--- a/scripts/py/gen_rgb_cpp.py
+++ b/scripts/py/gen_rgb_cpp.py
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -78,7 +78,7 @@
scale_ratio = (float)(max(ifm_width, ifm_height)) / (float)(min(original_image.size[0], original_image.size[1]))
resized_width = (int)(original_image.size[0] * scale_ratio)
resized_height = (int)(original_image.size[1] * scale_ratio)
- resized_image = original_image.resize([resized_width,resized_height], Image.BILINEAR)
+ resized_image = original_image.resize([resized_width,resized_height], Image.Resampling.BILINEAR)
# Crop the center of the image
resized_image = resized_image.crop((