mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
Smart Sharpen (filter.sharpen.smartSharpen) and Dust & Scratches (filter.noise.dustAndScratches) smart filters are now mapped both ways in the PSD filterFX list instead of being dropped on save and opening as uneditable entries. - Smart Sharpen: filterID 1131 (numeric), stringID class smartSharpen; useLegacy bool, Amnt UntF #Prc, Rds UntF #Pxl, noiseReduction UntF #Prc, blur blurType enum. PhotoCraft removes a Gaussian blur, so it writes blur GsnB with useLegacy false. Entries with Lens Blur (Photoshop's default), Motion Blur (with Angl), legacy mode, any other key, wrong types/units or out-of-range values stay verbatim. presetKind (presetKindType) is accepted on open but not kept or written: the engine takes no such parameter, and Photoshop leaves it out of entries with explicit values. - Dust & Scratches: filterID / class DstS; Rds and Thsh long (radius 1..500, threshold 0..255; PhotoCraft params are rounded on write). Measured in Photoshop: applied through Action Manager to a smart object, saved, filterFX read back (Smart Sharpen default / Gaussian / Motion, Dust & Scratches 1,0 and 4,20). Tests cover the measured shapes, option round trips, malformed descriptors kept verbatim and hostile params. Scorecard FILE-215-2 note and file-format parity doc updated. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>