JPG or PNG for a photo, logo, or screenshot?
Choose a format that suits the image and see what happens to transparency when you convert it.
Use JPG for a photo without transparency. Choose PNG for a logo with a clear background or a screenshot with small text and sharp edges.
When exporting PNG to JPG, set a background color for transparent areas and inspect the edges. Converting a JPG to PNG cannot restore lost detail.
A Chromium test reopened a JPG as an 80 × 40 PNG. A separate test checked that a transparent PNG came out on the selected blue background in JPEG.