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
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
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_effectextracts 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