mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
#825 made ExportOptions::default() write a flat TIFF (headless saves stay flat unless they ask for layers). corpus_round_trips_through_layered_tiff exported with the defaults, so every corpus file came back flat and the round trip failed (670 failures). Test-only change: request tiff_layers: true. Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
07174271d5
commit
3689754ef2
1 file changed
+1
-1
@@ -92,7 +92,7 @@ fn corpus_round_trips_through_layered_tiff() {
|
||||
let res = catch_unwind(AssertUnwindSafe(|| -> Result<(), String> {
|
||||
let psd = export(&doc, "x.psd", &ExportOptions::default()).map_err(|e| format!("psd export: {e}"))?;
|
||||
let oracle = import("x.psd", &psd.bytes).map_err(|e| format!("psd re-import: {e}"))?.document;
|
||||
let out = export(&doc, "x.tif", &ExportOptions::default()).map_err(|e| format!("export: {e}"))?;
|
||||
let out = export(&doc, "x.tif", &ExportOptions { tiff_layers: true, ..Default::default() }).map_err(|e| format!("export: {e}"))?;
|
||||
for w in &out.warnings {
|
||||
if let Some(rest) = w.strip_prefix("layer data: ")
|
||||
&& let Some((key, _)) = rest.split_once(" block (")
|
||||
|
||||
Reference in new issue
Block a user