diff --git a/meshroom/nodes/aliceVision/ImageProcessing.py b/meshroom/nodes/aliceVision/ImageProcessing.py index 3bca36a9..751e0ca6 100644 --- a/meshroom/nodes/aliceVision/ImageProcessing.py +++ b/meshroom/nodes/aliceVision/ImageProcessing.py @@ -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(