From a7046966da47ee863707e245ce7ceee0e19875f7 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 16 Jul 2022 17:23:14 +0100 Subject: [PATCH] fxconv: fix double object file size for RGB565 images --- fxconv/fxconv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 46a2689..cb57351 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -1033,7 +1033,7 @@ def image_encode(img, format): if format.depth == IMAGE_RGB16: # Preserve alignment between rows by padding to 4 bytes stride = (img.width + 1) // 2 * 4 - size = stride * img.height * 2 + size = stride * img.height elif format.depth == IMAGE_P8: size = img.width * img.height stride = img.width