Summary
Photoshop supports three stroke alignment modes: center, inner, and outer. psd2svg currently only supports center-aligned strokes and warns about inner/outer alignment.
Current Behavior
- Only center-aligned strokes are supported
- Inner or outer strokes trigger a warning: "Inner or outer stroke is not supported yet"
- Code location: paint.py:161
Expected Behavior
Full support for inner and outer stroke alignment to accurately match Photoshop's rendering.
Implementation Notes
The comment suggests using clipPath to simulate inner/outer strokes:
- Inner stroke: Stroke applied only within the shape boundary (could use clip to shape boundary)
- Outer stroke: Stroke applied only outside the shape boundary (could use inverse clip or mask)
SVG natively only supports center strokes, so this would require creative use of clipping paths or masks to achieve the same visual effect.
Related Files
src/psd2svg/core/paint.py
Summary
Photoshop supports three stroke alignment modes: center, inner, and outer. psd2svg currently only supports center-aligned strokes and warns about inner/outer alignment.
Current Behavior
Expected Behavior
Full support for inner and outer stroke alignment to accurately match Photoshop's rendering.
Implementation Notes
The comment suggests using
clipPathto simulate inner/outer strokes:SVG natively only supports center strokes, so this would require creative use of clipping paths or masks to achieve the same visual effect.
Related Files
src/psd2svg/core/paint.py