Files
David Feltell f931308026 [Core] Add PublishImage node
Copy-paste current implementation of core SaveImage, but use a string
input providing an entity reference instead of a file name, and
retrieve target file path from the OpenAssetIO manager.

Support image preview in the UI by copying the published file to a
(temp) directory on ComfyUI's allow-list.

Signed-off-by: David Feltell <david.feltell@foundry.com>
2025-09-05 17:46:51 +01:00

66 lines
1.7 KiB
JSON

{
"managementPolicy": {
"read": {
"default": {
"openassetio-mediacreation:managementPolicy.Managed": {}
}
},
"write": {
"default": {
"openassetio-mediacreation:managementPolicy.Managed": {}
}
},
"managerDriven": {
"default": {
"openassetio-mediacreation:managementPolicy.Managed": {}
}
}
},
"entities": {
"image_file": {
"versions": [
{
"traits": {
"openassetio-mediacreation:usage.Entity": {},
"openassetio-mediacreation:twoDimensional.Image": {},
"openassetio-mediacreation:content.LocatableContent": {
"location": "file://${test_tmp_dir}/cat.png"
}
}
}
]
},
"no_file": {
"versions": [
{
"traits": {
"openassetio-mediacreation:usage.Entity": {},
"openassetio-mediacreation:twoDimensional.Image": {}
}
}
]
},
"new_image_file": {
"versions": [],
"overrideByAccess": {
"write": {
"traits": {
"openassetio-mediacreation:usage.Entity": {},
"openassetio-mediacreation:twoDimensional.Image": {},
"openassetio-mediacreation:twoDimensional.PixelBased": {},
"openassetio-mediacreation:twoDimensional.Planar": {},
"openassetio-mediacreation:content.LocatableContent": {}
}
},
"managerDriven": {
"traits": {
"openassetio-mediacreation:content.LocatableContent": {
"location": "file://${test_tmp_dir}/dog.png"
}
}
}
}
}
}
}