This article explains how to convert a GIMP image to PNG format. It contains information for optimizing images for web use. The instructions in this article apply to GIMP version 2.10 for Windows, Mac, and Linux.
Save or Export an Image as JPEG, PNG, GIF, etc. – GIMP 2.8 for Beginners
The default file format for images created in GIMP is XCF, which is not suitable for use outside of the graphics program. When you are finished working on an image in GIMP, you should save it in a standard format such as PNG.
To save an XCF file in PNG format using GIMP:
Open the XCF file you want to convert in GIMP.