In light of the Coronavirus crisis, please help make sure nothing stands in the way of social distancing in the VFX industry.

This petition asks the MPAA to act accordingly:


Sign the petition on Change.org

Be safe, everyone.

Re SVG Importer doesn't close polygon when importing <circle> where fill is set to 'none'

Moderator: Chad

User avatar
maarten
Posts: 27
Joined: Sun Dec 15, 2019 9:17 am

SVG Importer doesn't close polygon when importing <circle> where fill is set to 'none'

#1

Post by maarten » Wed Mar 25, 2020 6:40 am

Resolve/Fusion version:
16.2


OS and version:
Windows 10


Additional relevant system info:
Not important.


Description of the bug:
When importing an SVG file with only a simple <circle> element and a stroke color, and fill set to 'none', the SVG importer supports the border only (no fill) circle shape, but doesn't close that polygon path so it's not a circle anymore after import. It does work when setting the fill to fully transparent, but that's obviously not what we want. We want to set a fill to 'none' in our vector editors as that's what we're after and is a normal workflow!!

Test svg:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="1920px" height="1080px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
    <circle cx="370" cy="526" r="222" style="fill:none;stroke:#808080;stroke-width:8px;"/>
</svg>
Result:
svg-circle-after-import-2.jpg
svg-circle-after-import.jpg
Severity (Trivial, Minor, Major, Critical)
Critical on the svg importer, as we cannot trust the svg importer on even simple shapes to import.


Steps to reproduce:
Import above svg with Fusion --> Import --> SVG.
You do not have the required permissions to view the files attached to this post.