Jump to content
You must now use your email address to sign in [click for more info] ×

SVG - How to avoid large file sizes using gradients/shadows

Recommended Posts


Using Gradients, or shadow effects dramatically increases the exported SVG file size. Do anyone have any tips/tricks for how to use gradients in a way that does not affect the file size? This is important for use on webdesign etc.

By example, a file was 4kb, without gradient. Introducing 1 gradient and 1 shadow effect resulted in a 60kb SVG file.


Link to comment
Share on other sites

Yes, the shadows are being rasterised. I had the same issue in Photo and the only way I could produce a vector blurred shadow (feGaussianBlur) was to replicate the shape, colour it black, offset a few pixels and apply a Gaussian blur from Fx.

Then export to svg with Rasterise set to Nothing. If it's left on Unsupported Properties then the svg has an embedded png. The rasterised blur is slightly larger but the unrasterised version is acceptable


Microsoft Windows 10 Home, Intel i7-9750H CPU @ 2.60GHz, 16 GB RAM, 500GB SSD, 1TB Whirlygig, NVIDIA GeForce RTX 2060
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Link to comment
Share on other sites

  • 5 weeks later...

I have a kind of similar problem with an inner shadow. When I don't do an inner shadow within the curve, the curve look sharp when I export the document to PDF. When I do an inner shadow, I guess the curve is being rasterized and the final PDF will have a curve with very unsharp edges. I cannot save the PDF with nothing rasterized, because then a lot of other things go wrong. Any solution to this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.