Skip to content

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

@banxian

Description

@banxian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions