From 9416091f902ece81f8e0b4ea9564fa260a411c88 Mon Sep 17 00:00:00 2001 From: eleanor-park Date: Wed, 1 Jan 2025 21:40:50 -0500 Subject: corrected image dimension bug --- src/client/views/smartdraw/SmartDrawHandler.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/client/views/smartdraw/SmartDrawHandler.tsx b/src/client/views/smartdraw/SmartDrawHandler.tsx index ed2734c8b..8cff2174f 100644 --- a/src/client/views/smartdraw/SmartDrawHandler.tsx +++ b/src/client/views/smartdraw/SmartDrawHandler.tsx @@ -296,6 +296,8 @@ export class SmartDrawHandler extends ObservableReactComponent { return Networking.PostToServer('/queryFireflyImage', { prompt: input, width: width, height: height, seed: seed }).then(img => { const imgDoc: Doc = Docs.Create.ImageDocument(img.accessPaths.agnostic.client, { title: input.match(/^(.*?)~~~.*$/)?.[1] || input, + nativeWidth: width, + nativeHeight: height, ai_generated: true, firefly_seed: img.accessPaths.agnostic.client.match(/\/(\d+)upload/)[1], firefly_prompt: input, -- cgit v1.2.3-70-g09d2