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 create a Path element from image resources #38

Open
cporrasn opened this issue Apr 16, 2024 · 0 comments
Open

How can I create a Path element from image resources #38

cporrasn opened this issue Apr 16, 2024 · 0 comments

Comments

@cporrasn
Copy link

  • psdwriter version:
  • Python version: 3.8
  • Operating System: Windows

Description

I want to be able to build the content of path list of pixels.
From there I want to create the path and convert it to the Path object that can be interpreted by Photoshop.
I have tried to read the object but I am not clear in this library to which object I should convert it from bytes.
I have been able to convert it to a Path object but from psd-tools, it is not clear to me that they are really interpreted the same.

What I Did

I can read the path using the following command line: psd.image_resources.blocks[..].data
The data comes in bytes and I don't know which object to convert it into
Captura
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