#708 PSD: No longer emit warning for '8B64' (64 bit/long) resources.

(cherry picked from commit 044317266609660c330d4ea60ecc259d2f269345)
This commit is contained in:
Harald Kuhr 2022-10-20 17:06:52 +02:00
parent f2624d5193
commit 135a631bcc

View File

@ -944,7 +944,7 @@ public final class PSDImageReader extends ImageReaderBase {
if (metadata.layerInfo == null) {
while (imageInput.getStreamPosition() + 12 < metadata.layerAndMaskInfoStart + layerAndMaskInfoLength) {
int resSig = imageInput.readInt();
if (resSig != PSD.RESOURCE_TYPE) {
if (resSig != PSD.RESOURCE_TYPE && resSig != PSD.RESOURCE_TYPE_LONG) {
processWarningOccurred(String.format("Bad resource alignment, expected: '8BIM' was '%s'", PSDUtil.intToStr(resSig)));
break;
}