The default choice is "Exclude Overlapping Shapes" which is the same as drawing svg pathes with even-odd rule.
So for example in Photoshop i could draw a whole while drawing both path items in clockwise directions
http://home.arcor.de/durius.obsidian/path1test.tif Photoshop Path Display:
Path Extraction with Imagemagick:
convert -version
Version: ImageMagick 6.8.9-5 Q16 x86_64
identify -format '%[8BIM:1999,2998:#1]' path1test.tif
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<svg width="400" height="400">
<g>
<path style="fill:#00000000;stroke:#00000000;stroke-width:0;stroke-antialiasing:false" d="
M 59.055 59.055
L 354.33 59.055
L 354.33 354.33
L 59.055 354.33
L 59.055 59.055 Z
M 118.11 118.11
L 295.275 118.11
L 295.275 295.275
L 118.11 295.275
L 118.11 118.11 Z
"/>
</g>
</svg>
Btw the official File Format Specification http://www.adobe.com/devnet-apps/photos ... 7409_17587 states:
Well obviously the fill rule is correctly applied by photoshop so Adobe and documentation...2 byte fill rule. 0 = same fill rule, 1 = even odd fill rule, 2 = non zero winding fill rule. The fill rule is ignored by Photoshop.
A simple addition of "fill-rule="evenodd"" to the svg path would solve that issue and would be "more" correct for the most use Cases.
Of course that does not work with any other option i could choose in Photoshop for path interaction but to read the stored information AND write proper svg is much more complicated.
So i propose at least add some option for that flag