Skip to content

Support full gradient rendering for inner glow effects #280

@kyamagu

Description

@kyamagu

Summary

Inner glow effects can use gradients instead of solid colors. Currently, psd2svg approximates gradient-based inner glows by using only the first color stop.

Current Behavior

  • Gradient-based inner glow is approximated using the first color stop
  • Warning is logged: "Gradient-based inner glow is approximated using first color stop"
  • Code location: effects.py:874

Expected Behavior

Full gradient rendering for inner glow effects to accurately match Photoshop's appearance.

Implementation Notes

The current implementation in add_raster_inner_glow_effect extracts only the first color from gradient stops as an approximation. Full support would require rendering the gradient across the glow area, which may need additional SVG filter primitives.

Related Files

  • src/psd2svg/core/effects.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