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

When creating a Photoshop file with only group layers we cannot open the file #65

Closed
EmilDohne opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@EmilDohne
Copy link
Owner

This appears to be due to the way we calculate the amount of channels in a file when going from LayeredFile<T> -> PhotoshopFile. It doesnt detect any channels and therefore writes out 0 which isnt valid for Photoshop. What it appears to actually do is just write out 4 channels in RGB mode and write that into the merged image data section

@EmilDohne EmilDohne added the bug Something isn't working label Mar 14, 2024
@EmilDohne EmilDohne self-assigned this Mar 14, 2024
@EmilDohne
Copy link
Owner Author

In addition we default initialize the LayeredFile document with a width and height of 0 which isnt valid. This should be set to 1 by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant