Checking around the community, this issue has popped up from time to time. The main cultrip seems to be the way Photoshop and similar software save PNG data information in its channel. There’s one thread with a pretty clear solution for this, please check it out:
don’t paint ui elements on a white canvas. you gotta use the “border color” of your elements. so only the alpha controls the shape. it should not be present in the color channels.
Yess. your right. i tried to put the image on photopea & export it & the issue is fixed.
Is there any setting in photoshop to solve it since photopea is just a web clone of PS?
From my experience, there’s no direct function or automatic setting in Photoshop to get rid of white borders. There are, however, workflows to achieve the same result. Here’s a short guide for one: