SVG Effects

SVG Effects

The SVG section groups image effects that can be exported to SVG files. Some also appear in other effect groups; this section makes compatible effects easier to find.

Combine these effects to create more complex SVG effects. You can import SVG effect definitions as presets, then choose them from the effects menu to apply them to objects. You can also import an SVG file containing a combination of filters and save those filters as an image effect preset.

Another way to import SVG filters is to copy the SVG files into a separate folder and set up a user preset group for that folder. See the introduction to Image Effects for instructions.

These filters are typically used together in an imported SVG effect. Some are not useful on their own. To adjust a combination of filters, open the individual filter settings in the Image Effects panel.

Color Transform

The Color Transform filter adjusts image colors using predefined transformations or a custom matrix of color component weights.

The Color Transform filter and its options.

The Color Transform filter with a custom weight matrix.

Options:

  • Mode - Choose the transformation:
    • Custom Matrix - Use a matrix of weights to map the input image’s RGBA components to the output image’s RGBA components.
    • Saturate - Adjust color saturation.
    • Rotate Hue - Rotate color hues.
    • Luminance to Alpha - Map color luminance to the alpha channel.
  • Amount - Set the amount of saturation or hue rotation.
  • In Custom Matrix mode, edit the displayed matrix. It contains a weight for each input/output RGBA pairing and a bias for each output component.

Composite Image

The Composite Image effect combines two input images using the selected composition mode.

The Composite Image filter and its options.

Options:

  • Mode - Choose how to combine the images:
    • Arithmetic - Combine the input colors using numeric weights. Set the weights with the enabled sliders and numeric fields.
    • Over - Place the second image over the first.
    • In - Use the first image’s alpha channel to mask the second image.
    • Out - Keep the parts of the second image outside the first image’s opaque areas.
    • ATop - Place the second image over the first, within the first image’s alpha boundary.
    • Xor - Show areas where only one image is present, excluding areas where both overlap.
  • Both - Set the weight for the product of the two images’ color components.
  • Foreground - Set the foreground image’s weight.
  • Background - Set the background image’s weight.
  • Bias - Set the shift in the resulting color tone.
  • Normalized - Normalize the resulting tone by the sum of the weights.

Curves

The Curves filter adjusts color channels using editable curves. Each curve maps the original channel values to new values. You can edit each channel separately or use one curve for all channels.

The Curves effect and its options.

  • Color Mode - Choose the color mode. The effect converts image colors to this mode before adjusting its channels.
  • Channel - Choose the channel whose curve you want to edit. Choose the color mode’s name to edit a curve for all channels.
  • Styles - Choose a function style or preset. Use Create Style or Create Preset to save the current function.
  • Drag points in the curve preview to adjust the curve.
  • Choose an editing mode:
    • Cubic curve - Adjust a cubic curve using control points. The curve may overshoot between points.
    • Monotone cubic curve - Adjust a monotone cubic curve using control points. The curve does not overshoot between points.
    • Line segments - Build the curve from a sequence of straight lines.
    • Freehand curve - Draw a custom adjustment curve freely.
    • Gamma curve - Use a gamma adjustment curve.
    • Reverse gamma curve - Use a reverse gamma adjustment curve.
    • Reset curve - Restore the curve to its unmodified state, where input values equal output values.
  • Use the triangular sliders below the curve to set the input range. Values outside this range remain unchanged.

Diffuse Light

The Diffuse Light filter lights the image as a relief surface, using the alpha channel as a bump map.

The Diffuse Light filter with basic options.

Advanced options of the Diffuse Light filter.

Basic options:

  • Mode - Choose the light source:
    • Distant - Use a uniform, distant light.
    • Point - Place the light at a specific point.
    • Spot - Aim the light from one point toward another.
  • Color - Choose the light color.
  • Scale - Set the surface scale for the lighting effect.
  • Diffusion - Set the amount of light diffusion.

Click Detailed settings to access advanced options:

  • Light Styles - Choose a saved light preset. Click Edit light to edit the light settings described below.
  • Color Mode - Choose the color mode used to generate the lighting effect.
  • Blend Mode - Choose how to blend the result with the original image. Available when Composite with Image is enabled.
  • Composite with Image - Combine the lighting effect with the original image using the selected blend mode.

Light Source

The Diffuse Light and Specular Light filters share light source settings for lighting the input image as a relief surface.

Editing the Light Source options.

Options:

  • Styles - Choose a saved light source preset or create a new one.
  • Type - Choose the light type. The available settings depend on this choice:
    • Distant - Use a uniform, distant light.
    • Point - Place the light at a specific point.
    • Spot - Aim the light from one point toward another.
  • Color - Choose the light color.
  • Azimuth - Set the direction of a Distant light around the surface.
  • Elevation - Set the elevation of a Distant light above the surface.
  • Exponent - Set how strongly the lighting tones vary.
  • Angle Min - Set the minimum angle for a Spot light.
  • Angle Max - Set the maximum angle for a Spot light.
  • Positions - Position a Point or Spot light relative to the image’s extent.
  • Points At - Set the target of a Spot light relative to the image’s extent.

Displacement

The Displacement filter distorts an image using another image as a displacement map. The map can come from a previous SVG filter or an image selected as a transparency mask. Two of its color channels control how far pixels move horizontally and vertically.

The Displacement filter and its basic options.

The Displacement filter with advanced options.

Basic options:

  • Mapping - Choose the displacement map image.
  • Strength - Set the strength of the displacement.
  • Adjust with Alpha - Use the alpha channel to adjust the displacement amounts.
  • Proportional - Scale the displacement map proportionally to the filtered image’s size.

Click Detailed settings to access advanced options:

  • Mode - Choose the color mode for the displacement map. This determines which channels are available for horizontal and vertical displacement.
  • Channel X - Choose the channel for horizontal displacement.
  • Channel Y - Choose the channel for vertical displacement.
  • Expansion - Set how far the transformed image region can expand beyond its original frame.
  • Reverse X - Reverse the horizontal displacement values.
  • Reverse Y - Reverse the vertical displacement values.
  • Polar Mode - Use the map’s color intensities to displace polar coordinates.
  • Separate Maps - Use separate images for horizontal and vertical displacement.

Fill with Color

The Fill with Color filter fills the image with a uniform color. It is usually combined with other filters to build a composite SVG effect.

The Fill with Color filter and its options.

Options:

  • Color - Choose the fill color.
  • Blend Mode - Choose how to blend the fill with the original image colors.
  • Opacity - Set a uniform opacity for the alpha channel.
  • Preserve Alpha - Keep the original alpha channel unchanged.

Gaussian Blur

The Gaussian Blur effect smooths images and edges by averaging colors within a circular region. Pixels nearer the center have more influence. Stretch and rotate the region to create an elliptical blur.

The Gaussian Blur effect and its basic options.

Advanced options of the Gaussian Blur effect.

Basic option:

  • Amount - Set the extent of the blur.

Click Detailed settings to access advanced options:

  • Scale - Set the vertical stretch of the blur region.
  • Angle - Set the rotation of the blur region.
  • Mask - Choose a transparency mask to vary blur strength across the image. The mask aligns with the filtered object, and its intensities control the blur strength. See Transparency for masking options.
  • Background - Use a background color when Preserve Colors is enabled. Click the color preview to choose a color. Only the alpha channel is blurred in this mode, allowing the background color to form a halo around the image.
  • Preserve Colors - Keep the colors unchanged and blur only the alpha channel. Use a background color to create a halo.
  • Preserve Alpha - Keep the alpha channel unchanged. The image retains sharp outer edges while its content is blurred.

Click Primary editor in the Image Effects panel to edit the effect on the canvas.

Interactive editing of the Gaussian Blur effect.

Drag the numbered handles to adjust:

  • (1) - Blur strength. Drag toward or away from the center.
  • (2) - Rotation of the blur region. Drag around the center.
  • (3) - The center of the effect.
  • (4) - Vertical stretch of the blur region, producing an ellipse.

Image

The Image filter generates an image from a fill style or an object in the current document. Objects with the Image for Effect role can supply images to composite filters.

The Image filter and its options.

Options:

  • Image - Choose a fill style, preset, or object with the Image for Effect role as the image source.
  • Preserve Aspect Ratio - Keep the original image’s width-to-height ratio.

Merge Image

The Merge Image filter combines two or more outputs from previous filters in a composite filter hierarchy.

The Merge Image filter and its options.

  • Choose each input from an Image drop-down menu. The available sources are outputs from previous filters.
  • Click Remove input to remove an input.
  • Click Add to add an input.

Morphology

The Morphology effect shrinks or expands regions along image edges. These operations are called erosion and dilation.

The Morphology effect and its basic options.

Advanced options of the Morphology effect.

Basic options:

  • Shape - Choose the shape of the region used to erode or dilate pixels. Select a shape style, preset, or object with the Shape role. Use the predefined Gaussian or Disc shapes for the default edge shapes.
  • Size - Set the extent of the erosion or dilation.
  • Position - Choose erosion or dilation.

Click Detailed settings to access advanced options:

  • Color Mode - Choose the color mode in which to erode or dilate color intensities.
  • Scale - Set the vertical stretch of the region.
  • Angle - Set the rotation of the region.
  • Background - Use a background color when Preserve Colors is enabled. Click the color preview to choose a color. Only the alpha channel is adjusted in this mode, allowing the color to form a halo around the image.
  • Preserve Colors - Keep the colors unchanged. The effect erodes or dilates the alpha channel, and can use the selected background color for the resulting margin.
  • Preserve Alpha - Keep the alpha channel unchanged while eroding or dilating the colors.

Click Primary editor in the Image Effects panel to edit the effect on the canvas.

Interactive editing of the Morphology effect.

Drag the numbered handles to adjust:

  • (1) - Effect strength. Drag toward or away from the center.
  • (2) - Rotation of the region. Drag around the center.
  • (3) - The center of the editing handles. Moving this center does not change the result.
  • (4) - Vertical stretch of the region.

Offset Image

The Offset Image filter moves the image content horizontally and vertically by the specified offsets.

The Offset Image filter and its options.

Options:

  • Offset X - Set the horizontal offset.
  • Offset Y - Set the vertical offset.

Specular Light

The Specular Light filter lights the image as a relief surface, using the alpha channel as a bump map.

The Specular Light filter with basic options.

Advanced options of the Specular Light filter.

Basic options:

  • Mode - Choose the light source:
    • Distant - Use a uniform, distant light.
    • Point - Place the light at a specific point.
    • Spot - Aim the light from one point toward another.
  • Color - Choose the light color.
  • Scale - Set the surface scale for the lighting effect.
  • Constant - Set the strength of the specular lighting.
  • Exponent - Set how strongly the lighting tones vary.

Click Detailed settings to access advanced options:

  • Light Styles - Choose a saved light preset. Click Edit light to edit the settings described under Light Source above.
  • Color Mode - Choose the color mode used to generate the lighting effect.
  • Blend Mode - Choose how to blend the result with the original image. Available when Composite with Image is enabled.
  • Composite with Image - Combine the lighting effect with the original image using the selected blend mode.

SVG Convolution

The SVG Convolution filter calculates each pixel’s color from the surrounding pixels. A grid of numeric weights, called a convolution kernel, controls how much each nearby pixel contributes. You can edit the weights and the grid size.

The SVG Convolution filter and its options.

Options:

  • Edit the kernel weights in the numeric matrix. Each weight controls the contribution of a pixel in the surrounding region.
  • Bias - Adjust the pixel intensity calculated from the neighboring pixels.
  • Divisor - Divide the calculated pixel intensity by this value.
  • Normalize - Normalize the kernel values.

Click Detailed settings to access additional options, including the kernel size:

  • Width - Set the kernel width.
  • Height - Set the kernel height.
  • Offset X - Set the horizontal offset of the kernel’s center relative to the pixel being adjusted.
  • Offset Y - Set the vertical offset of the kernel’s center relative to the pixel being adjusted.

Additional options of the SVG Convolution filter.

Tile Image

The Tile Image filter repeats the input image as tiles.

The Tile Image filter and its options.

Options:

  • Move X - Set the horizontal offset of the image.
  • Move Y - Set the vertical offset of the image.
  • Scale X - Reduce the image width to create tiles.
  • Scale Y - Reduce the image height to create tiles.

Turbulence

The Turbulence filter generates noise using the Turbulence noise type with a limited set of options. This special case of the Noise effect can be edited separately and exported to SVG without being converted to an image.

The Turbulence effect and its options.

Advanced options of the Turbulence effect.

Basic options:

  • Frequency - Set the frequency of the noise.
  • Octaves - Set the number of octaves. More octaves produce more detail.
  • Seed - Set the random seed used to generate the noise. Click Random seed to choose a random seed.
  • Make Alpha - Allow the noise to adjust the alpha channel.

Click Detailed settings to access advanced options:

  • Frequency X - Set the horizontal frequency when proportional mode is disabled.
  • Frequency Y - Set the vertical frequency when proportional mode is disabled.
  • Fractal Noise - Use fractal noise mode.
  • Proportional - Use proportional frequencies.