Image asset generation size is a pixel off

  • 1
  • Problem
  • Updated 3 years ago
Hi there,

I have an shape layer icon with the dimensions: 10x19px.

I've set the containing group name to this:

icon-facebook.png, 200% icon-facebook@2x.png

When the image assets get generated I would expect the icon-facebook@2x.png to be double size: 20x38px, however the generated file is 19x38px.

Any idea why?

Thanks
Photo of curtis fox

curtis fox

  • 3 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of curtis fox

curtis fox

  • 3 Posts
  • 0 Reply Likes
Just had the same problem with a 20x20px shape. The final x2 file comes out as 39x39px.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 812 Reply Likes
Which version of Photoshop are you using?
Have you installed all the updates?
Photo of curtis fox

curtis fox

  • 3 Posts
  • 0 Reply Likes
Hi Chris,

Sorry for the delay in getting back to you.

I'm using the latest Photoshop version 20150722.r.168 x64

Here's an example PSD where the outputted png is a pixel off:

https://www.dropbox.com/s/yeg5t0bkq48...