From 9f24023ca7015061a60e537105cd83f62ab4593f Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Wed, 20 Dec 2023 16:43:12 +0000 Subject: [PATCH] The maximum number of channels explained better Just a clarification on why the maximum value of channels present in the specifications is not used. --- src/imageformats/psd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/psd.cpp b/src/imageformats/psd.cpp index 85ef237..badd95d 100644 --- a/src/imageformats/psd.cpp +++ b/src/imageformats/psd.cpp @@ -631,7 +631,7 @@ static bool IsValid(const PSDHeader &header) qDebug() << "PSD header: invalid color mode" << header.color_mode; return false; } - // Specs tells: "Supported range is 1 to 56" but the limit is 57: + // Specs tells: "Supported range is 1 to 56" but when the alpha channel is present the limit is 57: // Photoshop does not make you add more (see also 53alphas.psd test case). if (header.channel_count < 1 || header.channel_count > 57) { qDebug() << "PSD header: invalid number of channels" << header.channel_count;