Skip to main content
Adobe Photoshop Family

33 Messages

 • 

780 Points

Mon, Jan 30, 2017 10:47 PM

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

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).



This is what Generator exports by default:


Setting "svgomg-enabled": false in the Generator config produces the correct output:


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

Responses

69 Messages

 • 

1.4K Points

4 years ago

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

33 Messages

 • 

780 Points

Yeah, same in Chrome.

And yeah, this was not an issue before SVGOMG.

14.6K Messages

 • 

282.6K Points

4 years ago

Would you mind posting your source file?

33 Messages

 • 

780 Points

4 years ago

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

952 Messages

 • 

15.3K Points

4 years ago

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

69 Messages

 • 

1.4K Points

4 years ago

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.

33 Messages

 • 

780 Points

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