viewer: add option to export TIFF in automation (#8472)

PPM does not store alpha channel, but TIFF does.  We add a method
to export RGBA to a TIFF file without compression.

We add the corresponding options to gltf_viewer and
AutomationEngine.

The default export format for both gltf_viewer and AutomationEngine
is now TIFF.
This commit is contained in:
Powei Feng
2025-02-27 10:54:37 -08:00
committed by GitHub
parent 6f41853e06
commit db30a9a50c
7 changed files with 379 additions and 27 deletions

View File

@@ -59,7 +59,7 @@ def render_test(gltf_viewer, test_config, output_dir,
env=env, capture_output=False)
if res == 0:
execute(f'mv -f {test.name}0.ppm {named_output_dir}/{out_name}.ppm', capture_output=False)
execute(f'mv -f {test.name}0.tif {named_output_dir}/{out_name}.tif', capture_output=False)
execute(f'mv -f {test.name}0.json {named_output_dir}/{test.name}.json', capture_output=False)
else:
important_print(f'{test_desc} failed with error={res}')