photocraft/packaging/windows
Brandon Thomas 0d6e658e73
PSD: rasterized fill and smart layers stay rasterized after save and reopen (#4034)
* fix(psd): rasterized fill and smart layers stay rasterized after save and reopen

Layer > Rasterize > Fill Content / Smart Object swapped the layer's content
to pixels but kept the fill (SoCo/GdFl/PtFl) or placed-layer (SoLd/PlLd/SoLE)
blocks read from the PSD. Written back, they made the reopened file a fill
layer or smart object again and discarded the pixels. Photoshop writes none
of them for a pixel layer.

- Rasterize drops those blocks from the layer.
- The PSD exporter never writes fill, placed, type (TySh), shape-content
  (vscg/vstk), adjustment or CgEd blocks for a raster layer, whichever
  command made it one; a vector mask (vmsk/vsms with its vogk) stays.

Tests: synthetic fill + smart object rasterize/save/reopen, the exporter
backstop with stale blocks, and Photoshop-authored corpus files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(psd): keep a pixel layer's vstk when it has no vector mask, as Photoshop does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:11:33 -04:00
..
check-icons.ps1 Fix Windows MSI advertised shortcut icons (#238) (#238) 2026-10-05 18:13:51 -04:00
package.ps1 Packaging: Windows MSI setup wizard (folder choice, progress, version, launch on finish) (#1864) 2026-10-09 21:33:38 +07:00
photocraft.en-us.wxl PSD: rasterized fill and smart layers stay rasterized after save and reopen (#4034) 2026-10-12 06:11:33 -04:00
photocraft.wxs PSD: rasterized fill and smart layers stay rasterized after save and reopen (#4034) 2026-10-12 06:11:33 -04:00
portable.txt Portable mode: keep settings beside the exe in the Windows portable zip (#228) (#267) (#267) 2026-10-05 18:15:29 -04:00
sign.ps1 Release pipeline id renames and PhotoCraft branding 2026-10-01 13:25:17 -04:00