How to keep a transparent background
Try the sample on the WebP converter. The sky around the sun is transparent. The checkerboard in the preview shows where the page behind the picture will be visible. Download the PNG and place it over a colored background to check the edges. An opaque original keeps its background.
Inspect the edge of the image
The sample has a solid orange sun and several opaque hills. Check both the open sky and the curved edges against a dark background. A white rectangle around the whole image may come from the app displaying it. Try a second background to confirm.
