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

Unexpected characters in layer names #79

Open
cezarykluczynski opened this issue Dec 15, 2014 · 0 comments
Open

Unexpected characters in layer names #79

cezarykluczynski opened this issue Dec 15, 2014 · 0 comments

Comments

@cezarykluczynski
Copy link

After creating a simple PSD with Gimp, I got layers names with a lot of additional information that doesn't make sense. For example (as can be seen in a attached file), for a layer named "LayerUnchanged", I got this legacy_name:

hanged8BIMluni \x0ELayerUnchanged\x01\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02

File in question:

https://mega.co.nz/#!H1lVVa4K!eWrYo2mXNeCkF9-Ca3lQakleILL9fXFeq7WHvBpGifM

And it seems to get worse every time layer name is changed and then file is saved.

How do I filter those characters out?

What's "BIMluni" (it's ofter part of those distorted layer names)? It has something to do with MacRoman I guess.

Maybe you could filter those additional characters out before getter returns layer name?

It gets even worse with some old PSD's I have. Like layer name history get's saved in layer name, if that makes sense (I can't share those through, that's my company property). And those were edited with PS3 or PS4 for sure, no Gimp involved.

I'm using PSD.rb 3.2.4 (but that port of PSD.rb, PSD.js, gave me similiar results).

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