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

This commit is contained in:
Harald Kuhr 2022-10-20 17:06:52 +02:00
parent cee2663f06
commit 0443172666

View File

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