From 26e3ca684bc5cb16b604c29b1b325e02278a84d1 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 16 Aug 2026 23:25:34 +0200 Subject: [PATCH 1/3] Fixed: Preserve embedded ICC color profiles when converting and resizing images Image.open() reads the source's ICC profile into img.info, but that dict resets to empty after convert() or resize(), and save() was never passing icc_profile anyway. DCI-P3 and Rec.2020 photos were silently falling back to sRGB interpretation once processed. --- src/py/builder/image_processor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/py/builder/image_processor.py b/src/py/builder/image_processor.py index a9cf0f6..7adf661 100644 --- a/src/py/builder/image_processor.py +++ b/src/py/builder/image_processor.py @@ -11,6 +11,7 @@ def convert_and_resize_image(input_path, output_path, resize=True, max_width=114 return img = Image.open(input_path) + icc_profile = img.info.get("icc_profile") if img.mode != "RGB": img = img.convert("RGB") @@ -27,7 +28,10 @@ def convert_and_resize_image(input_path, output_path, resize=True, max_width=114 if fmt == "JPEG": output_path = output_path.with_suffix(".jpg") - img.save(output_path, fmt, quality=90 if fmt == "JPEG" else 100) + save_kwargs = {"quality": 90 if fmt == "JPEG" else 100} + if icc_profile: + save_kwargs["icc_profile"] = icc_profile + img.save(output_path, fmt, **save_kwargs) logging.info(f"[✓] Processed image: {input_path} → {output_path}") except Exception as e: -- 2.54.0 From a7ce49b9892d9a19029f4221a1d42d83b57b9a88 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 16 Aug 2026 14:38:05 +0200 Subject: [PATCH 2/3] v2.1.2 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7c32728..8f9174b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.1 \ No newline at end of file +2.1.2 \ No newline at end of file -- 2.54.0 From 2968e875a77bbb681910e32687763a6af0b9e6b5 Mon Sep 17 00:00:00 2001 From: Djeex Date: Mon, 17 Aug 2026 15:20:06 +0200 Subject: [PATCH 3/3] Add Lumeex-web link to README.MD --- README.MD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.MD b/README.MD index eb1e0bc..0fb0c29 100644 --- a/README.MD +++ b/README.MD @@ -12,6 +12,8 @@ Lumeex is a static site generator designed to create minimalist photo galleries that highlight your artworks over the author. It empowers users to organize and explore images using tags, with each page load presenting photos in a random order to encourage discovery of new content. +👉 __Check the online version : [Lumeex-web](https://lumeex.djeex.fr)__ + The project includes two thoughtfully designed themes—one modern, one minimalistic—both crafted to keep the spotlight on your photos: - **Modern** — [View Demo](https://modern.djeex.fr) -- 2.54.0