Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get the content of the pattern? #270

Open
nieyuyao opened this issue Nov 17, 2022 · 0 comments
Open

How can I get the content of the pattern? #270

nieyuyao opened this issue Nov 17, 2022 · 0 comments

Comments

@nieyuyao
Copy link

nieyuyao commented Nov 17, 2022

The format of the pattern content is as follows according to the specification.
image

But i can't get it through the psd.js. This is like because there is no parsing of the Additional Layer Information.

parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
return if maskSize <= 0
@parseLayers()
@parseGlobalMask()
# The layers are stored in the reverse order that we would like them. In other
# words, they're stored bottom to top and we want them top to bottom.
@layers.reverse()
@file.seek finish
parseLayers: ->

Other libraries have this parsing, such as psd.rb.

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

No branches or pull requests

1 participant