How this works
This re-encodes the image as PNG using a lossless, optimized encoder (adaptive row filtering plus DEFLATE compression) — since JPG doesn't have transparency, the output PNG is fully opaque; converting doesn't add an alpha channel that wasn't there.