Create Extra MetaData:
The CreateExtraMetaData node is designed to enhance your image metadata by allowing you to create custom key-value pairs. This node is particularly useful when you want to add additional information to your images that are not covered by default metadata fields. By using this node, you can ensure that your images carry all the necessary information for future reference or processing. The node is flexible, allowing for empty values, but it requires that each value has a corresponding key, ensuring that your metadata remains structured and meaningful.
Create Extra MetaData Input Parameters:
extra_metadata
This parameter allows you to input existing metadata that you want to extend with additional key-value pairs. It is optional but can be forced as an input, ensuring that any existing metadata is preserved and augmented rather than overwritten. This helps maintain continuity and consistency in your metadata records.
key1
This is the first key in a series of up to four key-value pairs you can define. It is a string input, and while it can be left empty, it must be paired with a corresponding value if used. This key allows you to specify a custom metadata field name.
value1
This is the value corresponding to key1. It is also a string input and can be left empty, but it must not be provided without a corresponding key. This value allows you to specify the data or information associated with the custom metadata field.
key2
Similar to key1, this is the second key in the series of key-value pairs. It functions the same way, allowing you to define another custom metadata field name.
value2
This is the value corresponding to key2. It follows the same rules as value1, ensuring that each value is paired with a key.
key3
This is the third key in the series, providing additional flexibility to define custom metadata fields.
value3
This is the value corresponding to key3, following the same pairing rules as the previous values.
key4
This is the fourth and final key in the series, allowing for a total of four custom metadata fields to be defined.
value4
This is the value corresponding to key4, completing the set of key-value pairs you can define with this node.
Create Extra MetaData Output Parameters:
EXTRA_METADATA
The output of this node is a dictionary containing the custom metadata you have defined. This metadata can be used to enrich your images with additional information, making it easier to manage and utilize them in various workflows. The output ensures that all key-value pairs are properly structured and included in the metadata.
Create Extra MetaData Usage Tips:
- Ensure that each value has a corresponding key to avoid errors and maintain structured metadata.
- Use descriptive and meaningful keys to make your metadata easily understandable and useful for future reference.
- Consider the context in which your images will be used and include metadata that will be relevant and helpful in those scenarios.
Create Extra MetaData Common Errors and Solutions:
Value provided for 'value<i>' without corresponding 'key<i>'.
- Explanation: This error occurs when a value is provided without a corresponding key, which violates the requirement for paired key-value entries.
- Solution: Ensure that each value you provide has a corresponding key. If a value is not needed, either remove it or ensure its key is also provided.
