We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe24217 commit 1c14e25Copy full SHA for 1c14e25
invokeai/app/invocations/primitives.py
@@ -265,13 +265,9 @@ class ImageInvocation(BaseInvocation):
265
image: ImageField = InputField(description="The image to load")
266
267
def invoke(self, context: InvocationContext) -> ImageOutput:
268
- image = context.images.get_pil(self.image.image_name)
+ image_dto = context.images.get_dto(self.image.image_name)
269
270
- return ImageOutput(
271
- image=ImageField(image_name=self.image.image_name),
272
- width=image.width,
273
- height=image.height,
274
- )
+ return ImageOutput.build(image_dto=image_dto)
275
276
277
@invocation(
0 commit comments