Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


SVG export resterize

New Here ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Hi, when i export for example circle, box, etc. to SVG from Adobe XD with drop shadow it makes raster design. Can you fix it? Or what should i do? Check my file.

 

Thx for help

I.

TOPICS
Import and export, Product performance

Views

1.8K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , May 27, 2020 May 27, 2020
Here is part of SVG code of the cyrcle with shadow created in Adobe Illustrator <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 595.28 841.89" style="enable-background:new 0 0 595.28 841.89;" xml:space="preserve"> <style type="text/css"> .st0{fill:#FFF200;} .st1{fill:none;s...

Likes

Translate

Translate
Adobe Community Professional ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Here in SVG code I see that your logo elements has not be coded. Did you creat your logo in XD from scratch? Or it has been created in Ps or other app?

Annotation 2020-05-25 172804.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Hi, but i talk about circle and dropshadow. Logo and text are ok. But when I made shape with dropshadow XD made it like a raster. Why?C445B99C-77E9-440E-A28E-E26432D55330.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 27, 2020 May 27, 2020

Copy link to clipboard

Copied

Here is part of SVG code of the cyrcle with shadow created in Adobe Illustrator

 

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 595.28 841.89" style="enable-background:new 0 0 595.28 841.89;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFF200;}
.st1{fill:none;stroke:#000000;stroke-miterlimit:10;}
</style>
<g>

<image style="overflow:visible;opacity:0.75;" width="1330" height="1384" xlink:href="data&colon;image/png;base64,iVBORw0KG...

 

As you know vector graphics with shadow (or with any other style) effect created in Illustrator are raster effect. Here is the image preview from Illustrator. and it looks pixepixed

 

Annotation 2020-05-27 210410.png

If you will use inIllustrator SVG filters that are located in 3d Effect and will apply SVG Shadow filter you will get this code

 

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 595.28 841.89" style="enable-background:new 0 0 595.28 841.89;" xml:space="preserve">
<style type="text/css">
.st0{filter:url(#AI_Shadow_1);}
.st1{fill:#FFF200;}
.st2{fill:none;stroke:#000000;stroke-miterlimit:10;}
</style>
<filter filterUnits="objectBoundingBox" id="AI_Shadow_1">
<feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur>
<feOffset dx="4" dy="4" in="blur" result="offsetBlurredAlpha"></feOffset>
<feMerge>
<feMergeNode in="offsetBlurredAlpha"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<g class="st0">
<ellipse class="st1" cx="281.77" cy="381.06" rx="143.94" ry="150.51"/>
<ellipse class="st2" cx="281.77" cy="381.06" rx="143.94" ry="150.51"/>
</g>
</svg>

 

As you can see here the shadow used svg language for parsing shadow. 

 

I think the reason is that Adobe XD do not use SVG filter when exporting SVG. But I am not shure...

 

Annotation 2020-05-27 211753.png

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

LATEST

Thank you for the solution!!!
This has been driving us nuts.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines