Fix - store target_colorspace as new colorspace (#4544)

When transcoding into new colorspace, representation must carry this information instead original color space.
This commit is contained in:
Petr Kalis 2023-02-28 16:33:18 +01:00 committed by GitHub
parent d68cc23d32
commit 9f35ed2a63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,11 +129,14 @@ class ExtractOIIOTranscode(publish.Extractor):
colorspace_data.get("display"))
# both could be already collected by DCC,
# but could be overwritten
# but could be overwritten when transcoding
if view:
new_repre["colorspaceData"]["view"] = view
if display:
new_repre["colorspaceData"]["display"] = display
if target_colorspace:
new_repre["colorspaceData"]["colorspace"] = \
target_colorspace
additional_command_args = (output_def["oiiotool_args"]
["additional_command_args"])