Merge pull request #2417 from alicevision/fix/imageProcessingNodeImprovement

[nodes] ImageProcessing : use keepImageFilename attribute
This commit is contained in:
Fabien Castan 2024-05-31 18:12:56 +02:00 committed by GitHub
commit d922d447b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,8 +12,9 @@ def outputImagesValueFunct(attr):
outputExt = ('.' + attr.node.extension.value) if attr.node.extension.value else None
if inputExt in ['.abc', '.sfm']:
fileStem = '<FILENAME>' if attr.node.keepImageFilename.value else '<VIEW_ID>'
# If we have an SfM in input
return desc.Node.internalFolder + '<VIEW_ID>' + (outputExt or '.*')
return desc.Node.internalFolder + fileStem + (outputExt or '.*')
if inputExt:
# if we have one or multiple files in input