mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 02:42:05 +02:00
[nodes] ImageProcessing: split EXR and JPEG compression
This commit is contained in:
parent
bc14c0bcea
commit
20157a9a4d
1 changed files with 30 additions and 9 deletions
|
@ -523,22 +523,43 @@ Convert or apply filtering to the input images.
|
|||
),
|
||||
|
||||
desc.ChoiceParam(
|
||||
name='compressionMethod',
|
||||
label='Compression Method',
|
||||
description='Compression method for output image.',
|
||||
value='Auto',
|
||||
values=['None', 'Auto', 'RLE', 'ZIP', 'ZIPS', 'PIZ', 'PXR24', 'B44', 'B44A', 'DWAA', 'DWAB'],
|
||||
name='exrCompressionMethod',
|
||||
label='EXR Compression Method',
|
||||
description='Compression method for EXR images.',
|
||||
value='auto',
|
||||
values=['none', 'auto', 'rle', 'zip', 'zips', 'piz', 'pxr24', 'b44', 'b44a', 'dwaa', 'dwab'],
|
||||
exclusive=True,
|
||||
uid=[0],
|
||||
),
|
||||
|
||||
desc.IntParam(
|
||||
name='compressionLevel',
|
||||
label='Compression Level',
|
||||
description='Level of compression relying on the selected compression method.',
|
||||
name='exrCompressionLevel',
|
||||
label='EXR Compression Level',
|
||||
description='Level of compression for EXR images, range depends on method used.\n'
|
||||
'For zip/zips methods, values must be between 1 and 9.\n'
|
||||
'A value of 0 will be ignored, default value for the selected method will be used.',
|
||||
value=0,
|
||||
range=(0, 200, 1),
|
||||
range=(0, 500, 1),
|
||||
uid=[0],
|
||||
enabled=lambda node: node.exrCompressionMethod.value in ['dwaa', 'dwab', 'zip', 'zips']
|
||||
),
|
||||
|
||||
desc.BoolParam(
|
||||
name='jpegCompress',
|
||||
label='JPEG Compress',
|
||||
description='Enable JPEG compression.',
|
||||
value=True,
|
||||
uid=[0],
|
||||
),
|
||||
|
||||
desc.IntParam(
|
||||
name='jpegQuality',
|
||||
label='JPEG Quality',
|
||||
description='JPEG images quality after compression.',
|
||||
value=90,
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
enabled=lambda node: node.jpegCompress.value
|
||||
),
|
||||
|
||||
desc.ChoiceParam(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue