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:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user