Skip to content

Commit

Permalink
Merge pull request #771 from daaaaa/master
Browse files Browse the repository at this point in the history
PSD: Adding parsing for 'lsdk' (undocumented) additional layer information
  • Loading branch information
haraldk authored May 30, 2023
2 parents 033a142 + 20cd259 commit ba73a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,6 @@ interface PSD extends com.twelvemonkeys.imageio.metadata.psd.PSD {
int luni = 'l' << 24 | 'u' << 16 | 'n' << 8 | 'i';
int lyid = 'l' << 24 | 'y' << 16 | 'i' << 8 | 'd';
int lsct = 'l' << 24 | 's' << 16 | 'c' << 8 | 't';
// Undocumented: Nested section divider setting
int lsdk = 'l' << 24 | 's' << 16 | 'd' << 8 | 'k';
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ final class PSDLayerInfo {
layerId = pInput.readInt();
break;

case PSD.lsdk:
case PSD.lsct:
if (resourceLength < 4) {
throw new IIOException(String.format("Expected sectionDividerSetting length >= 4: %d", resourceLength));
Expand Down

0 comments on commit ba73a30

Please sign in to comment.