aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2025-01-01 21:40:50 -0500
committereleanor-park <eleanor_park@brown.edu>2025-01-01 21:40:50 -0500
commit9416091f902ece81f8e0b4ea9564fa260a411c88 (patch)
tree9acaec889665d793baf05f78fa7744009928bcd3
parent4eebcc75a174b82033b5092f837b1477bcb628eb (diff)
corrected image dimension bug
-rw-r--r--src/client/views/smartdraw/SmartDrawHandler.tsx2
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,