Add colorspace data extraction to representation loop

Extracts colorspace data from instance data and sets it in the representation loop for processing.
This commit is contained in:
Jakub Jezek 2024-11-06 15:49:13 +01:00
parent 6a635b9d5e
commit 3a71bbca29
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -37,6 +37,9 @@ class ExtractColorspaceData(publish.Extractor,
# get colorspace settings
context = instance.context
# colorspace name could be kept in instance.data
colorspace = instance.data.get("colorspace")
# loop representations
for representation in representations:
# skip if colorspaceData is already at representation
@ -44,5 +47,5 @@ class ExtractColorspaceData(publish.Extractor,
continue
self.set_representation_colorspace(
representation, context
representation, context, colorspace)
)