ORIGINAL FILE EXPERIMENT · BEFORE YOU REDRAW
Custom coloring sheets: why an SVG picture disappears.
If an SVG shows a picture when opened directly but only a border in a web preview, check whether it links to a separate image. In our controlled Chrome test, an external PNG loaded in the SVG document view but was omitted when the same SVG was used as a webpage image. Embedding the unchanged PNG inside the SVG restored the preview. Compare the files below before regenerating your artwork.
Compare two files containing the same picture
Open linked SVG as a document · Open embedded SVG as a document
The document links open a new tab. Compare that view with the labeled image previews above. This page does not accept or repair uploads.
Original files: Download linked SVG · Download self-contained SVG · Download source PNG
Loading the two controlled SVG image previews…
What we changed, and what we kept identical
We drew a small house, door and outlined sun on a white 240 × 160 PNG. This is an original diagnostic drawing, not an AI-generated gallery illustration or a visitor's photo. Both SVG wrappers have a white 300 × 220 coordinate area, the same rectangular border and the same image placement. Each wrapper contains one image element. The linked version names the neighboring source.png file; the self-contained version stores that exact PNG as a data URL.
Decoding the embedded data URL reproduces the source PNG byte for byte. We did not trace the house, change its resolution, alter its colors or draw replacement paths. The only experimental variable inside the SVG is the image reference. A larger self-contained file therefore means the existing pixels travel with the wrapper; it does not mean the picture has become vector artwork. For that separate distinction, see our SVG paths and embedded PNG comparison.
What the browser actually showed
In Chrome, opening the linked SVG as a document displayed the house and sun because the sibling PNG was available on the same server. Displaying that same linked SVG through an HTML image element left the border visible but removed the house. The embedded version retained both in image context. We repeated the local preview and obtained the same counts; this is a controlled browser observation, not a promise about every application.
| File | Dark pixels | Visible result |
|---|---|---|
| Linked SVG | 1,952 | Border only |
| Embedded SVG | 5,522 | Border, house and sun |
The two image-context renders differed at 3,570 RGB pixel positions. We counted a pixel as dark when its red channel was below 128; the fixtures are black and white, and the canvas area is fixed. The live result above reruns this calculation in your browser, while the two rendered PNG downloads save that actual canvas output. A border-only preview can therefore be a resource-loading symptom rather than an empty or damaged drawing.
Check the file before making another coloring page
- Keep the original and its neighboring files. An external image reference can depend on another file or server. Moving only the SVG may lose that dependency. We tested the hosted document and image contexts here; we did not test every desktop editor or a physical print workflow.
- Compare direct opening with the intended preview. Open the linked document above, then return to the labeled preview. A successful direct view does not establish that a website image element will load the same external resource.
- Export a self-contained copy when appropriate. In an editor that supports it, embed the permitted source picture, or export a PNG at the dimensions you actually need. Keep a separate master. Embedding stores the original raster pixels; it does not sharpen or vectorize them.
- Recheck the real destination. Test the copy in the application where you will use it. Before printing, inspect the chosen file, scale and margins there. These samples have not been physically printed.
MDN's SVG-as-image guide describes restrictions on external resources in image contexts and distinguishes them from direct document viewing. This page applies that distinction to one reproducible coloring-sheet diagnostic. It does not recommend disabling browser security or loading someone else's untrusted SVG.
FAQ
Is the blank linked preview a broken download?
In this controlled example, no. The SVG still contains its border and external image reference, and the source PNG exists. The missing house is the observed image-context behavior. A different file may have a genuinely missing dependency and needs its own check.
Does embedding the PNG turn it into vector paths?
No. The embedded version contains the same raster PNG bytes. Its independence from a separate image file is different from being a vector drawing.
Can I use this page to fix an uploaded SVG?
No upload or repair function is provided. Use the paired sources and actual browser renders as a diagnostic reference, then make a separate permitted copy in a compatible editor.
Were these samples tested on a physical printer?
No. File structure, Chrome document and image views, rendered pixels and actual downloads were checked. Other editors and physical printing were not tested.