mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-26 02:47:07 -06:00
* File Handling: wire Image Previews to embed a PSD thumbnail (#204) Preferences > File Handling > Image Previews is live for PSD/PSB saves. With Always Save (the default) and Ask When Saving, the file carries Photoshop's thumbnail image resource (1036: the 28-byte kJpegRGB header and a JFIF stream, at most 160 px on the long side); Never Save writes none. The thumbnail is the reduced composite converted to sRGB through the document's profile with photocraft-cms (8/16/32-bit; Gray, CMYK and Lab become RGB), over white where transparent. Ask When Saving has no Save As checkbox yet, so it saves the preview, as Photoshop's checkbox starts on. The preference reaches Save, Save As, Save a Copy and automation saves in the app (ExportSettings.image_previews), and the engine's headless saves (file.saveACopy, batch, Layers/Comps/Artboards to Files) through SaveOpts. photocraft_io::ExportOptions gains image_previews (default on). Settings that do nothing: 32 of 153 (#204). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * File Handling: rustfmt the Image Previews save path Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>