* if I use bilinear or other resampling
Are you sure?
Partially transparent edge pixels are a common and expected result with size transformations (unless Nearest Neighbor is the Interpolation Method or the layer is a Background Layer …).
>> Are you sure?
Yeah. I'm sorry, but why do you think I would write it if I didn't try it? I tried bilinear and nearest neighbor and they all work fine.
And well considering the algorithms average neighboring pixels, with a naive implementation a transparent edge is expected i guess, but I expect photoshop cs6 to be just a little bit smarter than that.
If it is a one layer solid image one could just flatten it before resizing.
but I expect photoshop cs6 to be just a little bit smarter than that.
Expect away …
Wow great! Thanks a lot for the solution!