layervault/psd.rb — pull request #54 by meltingice (2013-12-27 20:58:46+00:00)
Title: Incorrect Group x/y & width/height when group has empty layer?

Hi,

There seems to be a problem with parsing a PSD::Node::Group x/y & width/height when it has an empty layer underneath it. To reproduce, try parsing the following psd: https://www.dropbox.com/s/x4w7qsc9unr34g1/empty-layer.psd

The parsed object with name 'group' has an x=0, y=0, height=550 and a width=550. I'm not 100% sure that's correct. When you look in Photoshop for the same info, it shows an x=450, y=450, height=100 and width=100. This is exactly what the parser gives when parsing a PSD without the empty layer, like here:
https://www.dropbox.com/s/dbhh9omy4ke58ra/without-empty-layer.psd

It could be that this is not a bug though, but it seems to me that the parser should return x=450, y=450, width=100, height=100 in the empty-layer.psd case.

Any thoughts on this?

Thanks!