Prepare the visible composition before flattening
An XCF can include hidden layers, masks, notes, and alternate artwork. Confirm which items should appear in the final image and check that no temporary guides or comments have been left visible.
Choose a solid background for transparent areas. JPG cannot preserve alpha, so a transparent logo or overlay will become a rectangle unless a deliberate matte is selected.