• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

P: Generator SVG export doesn't support boolean shape operators

Explorer ,
Jan 30, 2017 Jan 30, 2017

Copy link to clipboard

Copied

This seems to be a regression in the new SVGOMG export module.

Here's the source file. Each shape is made out of two rectangles with varying boolean modes (add, subtract, exclude, intersect).

RackMultipart20170130661221q1u-61e1222c-081c-4cb7-81c7-5b3876cc8397-985711161.pngRackMultipart20170130661221q1u-61e1222c-081c-4cb7-81c7-5b3876cc8397-985711161.pngexpand imageexpand image

This is what Generator exports by default:

RackMultipart20170130668511beo-23844e4f-1377-4048-9661-e9025624fd3b-33886084.pngRackMultipart20170130668511beo-23844e4f-1377-4048-9661-e9025624fd3b-33886084.pngexpand imageexpand image
Setting "svgomg-enabled": false in the Generator config produces the correct output:
RackMultipart2017013085194gnzl-aea14582-2393-44af-ac2e-cd966bd7678d-1078393114.pngRackMultipart2017013085194gnzl-aea14582-2393-44af-ac2e-cd966bd7678d-1078393114.pngexpand imageexpand image

I realize that merging the shapes fixes the output, but that is not an acceptable solution.

Bug Unresolved
TOPICS
macOS , Windows

Views

96

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
8 Comments
Adobe Employee ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Philip-
Does it look the same when you open the .svg file in Chrome (not all SVG parsers are created equal). Also, you say regression, do you mean it used to work differently?

Thanks
-Tom Attix

Votes

Translate

Translate

Report

Report
Explorer ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Yeah, same in Chrome.

And yeah, this was not an issue before SVGOMG.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Would you mind posting your source file?

Votes

Translate

Translate

Report

Report
Explorer ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Explorer ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

FWIW this is not a recent regression, it's been around for at least 6-9 months.

Votes

Translate

Translate

Report

Report
LEGEND ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

I have also this problem often... so I usually merge paths of shape into one path.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

There is a (sort of) work around. Use Copy SVG from the layer's contextual menu. This copies the SVG code of the current layer to the clipboard, where it can be pasted to your SVG text file. I realize this isn't quite as convenient and I'm a little mystified as to why they don't use the same code, but that's where we're at at the moment. The second image is the Chrome rendering of the Copy SVG code.
undefinedexpand imageundefinedexpand image

Votes

Translate

Translate

Report

Report
Explorer ,
Feb 01, 2017 Feb 01, 2017

Copy link to clipboard

Copied

LATEST
Thanks, that's good to know for small projects.

Votes

Translate

Translate

Report

Report