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 <[email protected]>
This commit is contained in:
Tanish MankuandClaude Opus 5.5 authored and GitHub committed 2026-10-07 16:53:56 -07:00
1 parent 07174271d5
commit 3689754ef2
1 file changed
+1 -1
+1 -1
View File
@@ -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 (")