Skip to content

Support line shapes in vector layers #281

@kyamagu

Description

@kyamagu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions