Dark-mode adapter
Composite a backdrop (white by default) behind transparent or light images so dark themes stop turning them black; any dark colour works too.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are processed locally in your browser with Canvas and never uploaded.
Pick an image first (PNG / JPEG / WebP / GIF all work).
No result yet
Result
These are the real numbers from this run — copy them straight out.
Pick an image and the result shows up here.
What this tool does
- A transparent logo turns into a black block in WeChat dark mode; composite a white backdrop first and it renders correctly.
- Process before publishing: flatten light icons onto a dark backdrop so they keep contrast in dark UIs.
- Check whether an image is already fully opaque — if so no compositing is needed and you avoid an extra colour layer.
Example
Input
A 1×1 pixel [10,20,30,0] (fully transparent) with backdrop #ffffff
Output
Output [255,255,255,255]: the transparent pixel is fully replaced by the backdrop and the opaque ratio becomes 100%
Compositing uses the same source-over formula as the PNG background tool; this one additionally reports how many pixels were affected and the opaque ratio, so you can tell whether adaptation is even needed.
Frequently asked questions
Why does a transparent logo turn into a black block in WeChat dark mode?
Dark mode renders the page background black, and the transparent areas of a PNG carry no colour of their own, so the black backdrop shows through. This tool composites the image onto the backdrop you choose (white #ffffff by default) with the source-over formula: transparent pixels are fully replaced by the backdrop and semi-transparent pixels blend with it by alpha, so the exported file no longer turns black in a dark UI.
What is the difference between "Keep transparency (no adaptation)" and leaving it off?
With the option off the backdrop is really composited: the "Pixels covered" line shows how many pixels had alpha below 255 before compositing, and the last line gives the resulting percentage (100.0% once nothing transparent is left). With it on nothing is composited at all: the pixels are copied unchanged, Pixels covered is 0 and "Alpha kept" reads yes, which is useful for checking how much transparency an image actually has.
Does the backdrop have to be white, and what is the exported file called?
No — any colour works, so dark icons can sit on a light backdrop and light icons on a dark one, and the colour control always yields a #rrggbb value. The export name is the original name plus -dark.png, so icon.png downloads as icon-dark.png. The image is processed locally in your browser with Canvas and is never uploaded.
Keywords:dark mode imagewx blacktransparent image black