Why SVG shadows get cut off
A filter has a rendering region. A shadow or blur may extend beyond the source geometry, so a region that looks large enough for the unfiltered artwork can still cut into the result. A wider filter region does not remove clipping from a surrounding SVG viewport, clipPath or parent container.
Keep intermediate inputs available
For an offset shadow, this planner estimates the Gaussian envelope before the offset, then the same envelope after translation. Its recommended processing rectangle contains both. The final output envelope can be smaller: shadow-only output omits the visible source, but still needs that source as an intermediate input. Extra padding extends the processing rectangle.
Understand the Gaussian margin choice
A nonzero Gaussian has no exact finite support. A 3σ or 4σ margin expresses your own finite planning choice. It is not a threshold calculation for a known image, and it does not certify a renderer’s implementation. The numeric region conversion is separate from that estimate.
Use the result
- Enter the known local source bounds and effect settings.
- Choose a Gaussian multiplier and any extra padding.
- Compare the final output and intermediate processing envelopes with the current region.
- Select the recommended region or set a custom one. Changing region units preserves valid geometry.
- Export the SVG or filter markup, then test it with the real artwork, surrounding layout and target browsers.
Frequently asked questions
Do I need the worked examples to use this tool?
No. The presets are optional numeric practice scenarios, not required files. Choose an example and select Load example to fill the controls, inspect its expected result and edit the values. For real artwork, enter its own known local source bounds and filter settings.
Where do the example numbers come from?
They are hand-built rectangle dimensions and filter settings chosen to demonstrate default-region clipping, unit conversion, padding and other specific cases. They are not extracted from uploaded artwork. The own-SVG input guide shows how to map rect attributes, standard deviations and shadow offsets to the fields.
Does this guarantee an unclipped Gaussian blur?
No. An ideal Gaussian has infinite support. The chosen k times standard deviation gives a finite planning margin, not a guarantee that every visible blurred pixel is retained. Actual renderers and alpha content can differ.
Why can the recommended processing region be larger than the visible output envelope?
Intermediate primitives need their input before an offset. A shadow-only final envelope may exclude its original source, but clipping that input early can remove the shadow. The planner includes both the pre-offset blur envelope and shifted envelope in its recommended processing region.
How are objectBoundingBox values converted?
X and Y percentages are measured from the known source bounding-box origin, with horizontal values scaled by its width and vertical values by its height. Width and height percentages scale independently. Primitive standard deviations and offsets remain local user units.
What does the SVG default region option mean?
It means the object-bounding-box default rectangle: x -10%, y -10%, width 120% and height 120%. When userSpaceOnUse is selected, the tool converts that rectangle to bare user-unit numbers; it does not use viewport-relative percentages.
Does shadow-only output use feDropShadow?
No. feDropShadow includes the source graphic. Shadow-only output uses an explicit SourceAlpha blur, offset, flood and composite chain, without merging SourceGraphic.
Are envelope areas measurements of visible pixels?
No. They are rectangular geometry areas. A union bounding rectangle can contain empty gaps, and colors or opacity do not change this geometry model. The synthetic preview is not an alpha analysis of an uploaded image.
Will changing region units move the filter region?
When inputs are valid, changing the unit selector converts the displayed region numbers while preserving the current user-space rectangle. Fix invalid inputs before converting units.
Which source graphics can be planned?
Use a known, nonzero local bounding box. The tool does not inspect arbitrary SVG, strokes, markers, transforms, alpha content, clip paths, parent clipping or external styles. The preview uses only a synthetic filled rectangle.
What are the limits and precision?
Source width and height range from 0.01 to 1000000 user units. Standard deviations range from 0 to 100000, offsets and source origins from -1000000 to 1000000, and sigma multiplier from 0 to 10. JavaScript floating-point arithmetic is used; displayed values use 12 significant digits, while reports and generated SVG retain computed Number precision.
References: Filter Effects rendering region, Gaussian blur, Drop shadow and objectBoundingBox coordinate system and SVG local geometry bounds.
Related tools
SVG ViewBox, Padding & Coordinate Calculator · SVG Stroke Dasharray & Progress Ring Calculator · CSS Transition Reversal & Interruption Calculator · All image tools