Add or remove image data-URL wrappers, or re-encode browser-decodable raster images through canvas.
Text-only modes manipulate a Base64 media-type prefix. Raster modes decode an image, draw it onto canvas, and call the browser encoder for PNG, JPEG, or WebP; PNG-to-JPEG first paints white because JPEG has no alpha channel.
Source: PNG with transparent pixels To: JPEG Background: #ffffff
JPEG data URL with transparent pixels replaced by white
Web assets move from PNG to WebP, inline previews use data URLs, and transparent artwork is flattened for JPEG delivery.