Photoshop: When I get the bounds of a vector shape layer in CS6, it gives me values that are 2px too wide and 2px too tall

  • 2
  • Problem
  • Updated 3 years ago
In CS6...

1) I create a vector shape layer with pixel grid snapping turned on (so I know the edges of the shape are aligned to the pixel boundaries).

2) I have no layer effects added and stroke is set to none.

3) I get the bounds of the layer via ExtendScript

4) the values for the layer bounds that are returned are wrong! Typically, they are 1px too wide on each side (resulting in 2px too tall and 2px too wide).

This WAS working for me in CS5. Any ideas why this is now happening in CS6?
Photo of Jeremy Knudsen

Jeremy Knudsen

  • 24 Posts
  • 1 Reply Like
  • not real happy with CS6

Posted 5 years ago

  • 2
Photo of Damir Stuhec

Damir Stuhec

  • 3 Posts
  • 0 Reply Likes
Any progress on this? I'm having the same problems! How can we fix this?
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 812 Reply Likes
I don't think we've been able to reproduce it.
The bounds should be pretty tight to the shape, including the antialiasing and layer styles.
Photo of Damir Stuhec

Damir Stuhec

  • 3 Posts
  • 0 Reply Likes
I can reproduce it every single time with Photoshop CS6, using Shape layers. As soon as I rasterize them, everything works pixel perfect.

Do you have any ideas how I could make this work for shapes as well?

Thanks.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 812 Reply Likes
Offhand, no. But do try the current version of Photoshop (CC 2015).