From 3689754ef228808a661bf0fa5b7baf414b90f65d Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Wed, 7 Oct 2026 16:53:56 -0700 Subject: [PATCH] tiff_corpus: ask for layers explicitly (corpus job red since #825) (#876) #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 --- crates/io/tests/tiff_corpus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/io/tests/tiff_corpus.rs b/crates/io/tests/tiff_corpus.rs index 75019a8a1ff..143e75bea84 100644 --- a/crates/io/tests/tiff_corpus.rs +++ b/crates/io/tests/tiff_corpus.rs @@ -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 (")