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

slice for psd7/8 only contains origin and bounds key. #6

Open
banxian opened this issue Jul 14, 2018 · 0 comments
Open

slice for psd7/8 only contains origin and bounds key. #6

banxian opened this issue Jul 14, 2018 · 0 comments

Comments

@banxian
Copy link

banxian commented Jul 14, 2018

I write a script to extract slice list, when use code after commit c2f1b09, only origin and bounds returned in each slice. old version like 0.3.0 works fine with version 8 in 1050 block.
I list result for same psd between 1.0.0 and 0.3.0
1.0.0:
[ { origin: 'userGenerated',
bounds: { Top: 209, Left: 35, Btom: 218, Rght: 46 } },
0.3.0:
[ { sliceID: 94479,
groupID: 41,
origin: 'userGenerated',
Nm: 'lcd_left',
Type: 'Img ',
bounds: { Top: 209, Left: 35, Btom: 218, Rght: 46 },
url: '',
null: '',
Msge: '',
altTag: '',
cellTextIsHTML: true,
cellText: '',
horzAlign: 'default',
vertAlign: 'default',
bgColorType: 'None',
topOutset: 0,
leftOutset: 0,
bottomOutset: 0,
rightOutset: 0 },
I reviewed the "slices-for-psd-7-8" commit, and found all version other than 6 will treat as 7/8 and have different parse algorithm than default parse function. I don't known is commiter want override this two keys or only generate these two keys.

I attached two script for 1.0.0 and 0.3.0 and sample psd file (version=8) to reproduce this problem.
sliceexport3.zip

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