Is it possible to simply use Save for Web with resizing to produce images without black edges?
My current Save for Web setting
Left: original
Top right: Save for Web (black edges)
Middle right: bicubic resize then save
Bottom right: add a layer mask from transparency, resize then save (black edges)
Original
Save for Web
Resize then save
Add a layer mask from transparency, resize then save