diff options
author | eleanor-park <eleanor_park@brown.edu> | 2025-01-01 21:40:50 -0500 |
---|---|---|
committer | eleanor-park <eleanor_park@brown.edu> | 2025-01-01 21:40:50 -0500 |
commit | 9416091f902ece81f8e0b4ea9564fa260a411c88 (patch) | |
tree | 9acaec889665d793baf05f78fa7744009928bcd3 | |
parent | 4eebcc75a174b82033b5092f837b1477bcb628eb (diff) |
corrected image dimension bug
-rw-r--r-- | src/client/views/smartdraw/SmartDrawHandler.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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<object> { 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, |