mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(nodes): provide board_id in image creation
This commit is contained in:
parent
88c8cb61f0
commit
60b3c6a201
@ -993,6 +993,7 @@ class SaveImageInvocation(BaseInvocation):
|
||||
image=image,
|
||||
image_origin=ResourceOrigin.INTERNAL,
|
||||
image_category=ImageCategory.GENERAL,
|
||||
board_id=self.board.board_id if self.board else None,
|
||||
node_id=self.id,
|
||||
session_id=context.graph_execution_state_id,
|
||||
is_intermediate=self.is_intermediate,
|
||||
@ -1000,12 +1001,6 @@ class SaveImageInvocation(BaseInvocation):
|
||||
workflow=self.workflow,
|
||||
)
|
||||
|
||||
if self.board:
|
||||
context.services.board_images.add_image_to_board(
|
||||
board_id=self.board.board_id,
|
||||
image_name=image_dto.image_name,
|
||||
)
|
||||
|
||||
return ImageOutput(
|
||||
image=ImageField(image_name=image_dto.image_name),
|
||||
width=image_dto.width,
|
||||
|
Loading…
Reference in New Issue
Block a user