Summary
Photoshop supports line shapes in vector layers, but psd2svg currently falls back to path creation for unsupported shape types including lines.
Current Behavior
- Unsupported shape types (including lines) trigger a debug message: "Unsupported shape type"
- Falls back to generic path creation
- Code location: shape.py:293
Expected Behavior
Native support for line shapes, potentially using SVG <line> elements when appropriate.
Implementation Notes
The create_single_shape method in the shape converter currently handles Rectangle, RoundedRectangle, and Ellipse origination types. Line shapes would need similar handling, checking the origination data structure and creating appropriate SVG elements.
Related Files
src/psd2svg/core/shape.py
Summary
Photoshop supports line shapes in vector layers, but psd2svg currently falls back to path creation for unsupported shape types including lines.
Current Behavior
Expected Behavior
Native support for line shapes, potentially using SVG
<line>elements when appropriate.Implementation Notes
The
create_single_shapemethod in the shape converter currently handles Rectangle, RoundedRectangle, and Ellipse origination types. Line shapes would need similar handling, checking the origination data structure and creating appropriate SVG elements.Related Files
src/psd2svg/core/shape.py