From d8bf8a3bb97a9fba15d9d2ae97f237591da2f596 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Tue, 25 Feb 2025 15:24:38 -0500 Subject: [PATCH] LibGfx: Log error on invalid color profile --- Services/ImageDecoder/ConnectionFromClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Services/ImageDecoder/ConnectionFromClient.cpp b/Services/ImageDecoder/ConnectionFromClient.cpp index 1da5c677ff6..cf0466bd779 100644 --- a/Services/ImageDecoder/ConnectionFromClient.cpp +++ b/Services/ImageDecoder/ConnectionFromClient.cpp @@ -115,6 +115,8 @@ static ErrorOr decode_image_to_details(Core: if (auto maybe_icc_data = decoder->color_space(); !maybe_icc_data.is_error()) result.color_profile = maybe_icc_data.value(); + else + dbgln("Invalid color profile: {}", maybe_icc_data.error()); Vector>> bitmaps;