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

Bad export image from shape layer #71

Open
tomashanacek opened this issue Apr 26, 2014 · 5 comments
Open

Bad export image from shape layer #71

tomashanacek opened this issue Apr 26, 2014 · 5 comments

Comments

@tomashanacek
Copy link
Contributor

photoshop cc
psd: https://www.dropbox.com/s/jamaj3tve2qpw8l/error2.psd
psd.tree.descendant_layers[0].save_as_png('output.png')
output image: https://www.dropbox.com/s/voedjx5ub9bwnvz/output.png

@tomashanacek
Copy link
Contributor Author

Any suggestion? I think there is no image data for shape layer.
What about using VectorShape class?

@meltingice
Copy link
Member

Shape layers normally do have image data, but this seems to be a case where it does not.

It could be worth seeing if the VectorShape class can render it. It's currently disabled because it relies on cairo and typically the shape layers do have image data.

@tomashanacek
Copy link
Contributor Author

The question is what normally means... I save this psd without Maximize Compatibility:
https://www.dropbox.com/s/nj5iwo21ntqtr8m/Screen%20Shot%202014-05-02%20at%2018.08.32.png

@meltingice
Copy link
Member

Oh gotcha... yeah saving without maximize compatibility causes a lot of issues. First, PSD.rb needs a surefire way of detecting when it was not saved in maximize compatibility mode. I'm not sure if there is a resource flag that denotes this, or if you simply check the size of the full preview image to see if it's 0.

@nseeart
Copy link

nseeart commented Jan 8, 2018

Layer graphics background color?

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

3 participants