Release to Drop

SVG Apply gradientTransform

This free online tool is able to optimize SVG images and reduce their file sizes by applying the transformations in the gradientTransform attributes to the coordinates of gradients and getting rid of gradientTransform attributes. The image itself doesn't change visually.

or
Drag and Drop

How to Use this Tool

Either click the "Select SVG(s)" button above or Drag and Drop the files to this page. After that, a dialog that will allow you to save an optimized image or a zip archive with images will appear in your browser interface depending on how many files you selected.

Features of this Tool

Why to Optimize SVG

An optimized SVG weighs less and renders faster. This increases the speed of your site or app. Applying gradientTransform is one of the methods of optimizing an SVG image.

When to Use this Tool

You need to use this tool if your SVG image has gradients that have the gradientTransform attribute in them. To check this, open an image in any text editor and try to find the gradientTransform="..." text. If it presents, this tool may make the file size of an SVG smaller.

You can also just process all images you have. If there is nothing that this tool can optimize for a specific file, the initial image will be returned.

Which types of transformation can this tool handle

It works for linear and radial gradients. Types of transformations that can be applied are translate, scale (if the same for both dimensions), rotate, and matrix (if it performs a permitted scale).

Why transformation may not apply in some cases

Sometimes it is not possible to describe the look of a gradient just using its coordinates. For example, when a radial gradient is scaled unevenly for the x and y axes, it looks like an ellipse. The SVG format doesn't have radii for different axes. Thus, without the gradientTransform attribute, only a circle can be defined as the border of a gradient.