Skip to content

Fix PSB additional layer info length parsing - #27

Merged
SLP-DEV1 merged 3 commits into
mainfrom
fix/psb-additional-info-lengths
Aug 26, 2026
Merged

Fix PSB additional layer info length parsing#27
SLP-DEV1 merged 3 commits into
mainfrom
fix/psb-additional-info-lengths

Conversation

@SLP-DEV1

Copy link
Copy Markdown
Owner

Summary

Fixes PSB Additional Layer Information parsing so tagged-block length width is selected by key instead of treating every PSB tag as 64-bit.

Changes

  • use Adobe's documented 8-byte PSB key list
  • keep ordinary PSB tagged blocks such as luni, SoLd, and lsct on 4-byte lengths
  • preserve existing 64-bit PSB layer/mask, layer-info, and channel-data length handling
  • add unit coverage for 4-byte PSB tags, 8-byte PSB tags, and PSD behavior

Closes #20

@SLP-DEV1
SLP-DEV1 merged commit afbfebb into main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: parse PSB additional-layer-info lengths by key instead of always using 8 bytes

1 participant