From d0b117d1f31f911d46dffe69e2f5c40b2bc5de3e Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 11 Mar 2025 23:08:16 -0400
Subject: getting rid of old expand image code

---
 src/client/views/nodes/ImageBox.tsx | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

(limited to 'src/client/views/nodes/ImageBox.tsx')

diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index a7dd5de15..14adfaf1e 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -552,9 +552,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
             funcs.push({ description: 'Rotate Clockwise 90', event: this.rotate, icon: 'redo-alt' });
             funcs.push({ description: `Show ${this.layoutDoc._showFullRes ? 'Dynamic Res' : 'Full Res'}`, event: this.resolution, icon: 'expand' });
             funcs.push({ description: 'Set Native Pixel Size', event: this.setNativeSize, icon: 'expand-arrows-alt' });
-            funcs.push({
-                description: 'GetImageText',
-                event: () => {
+            funcs.push({ description: 'GetImageText',  event: () => {
                     Networking.PostToServer('/queryFireflyImageText', {
                         file: (file => {
                             const ext = extname(file);
@@ -563,25 +561,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
                     }).then(text => alert(text));
                 },
                 icon: 'expand-arrows-alt',
-            });
-            funcs.push({
-                description: 'Expand Image',
-                event: () => {
-                    Networking.PostToServer('/expandImage', {
-                        prompt: 'sunny skies',
-                        file: (file => {
-                            const ext = extname(file);
-                            return file.replace(ext, (this._error ? '_o' : this._curSuffix) + ext);
-                        })(ImageCast(this.Document[Doc.LayoutFieldKey(this.Document)])?.url.href),
-                    }).then(res => {
-                        const info = res as Upload.ImageInformation;
-                        const img = Docs.Create.ImageDocument(info.accessPaths.agnostic.client, { title: 'expand:' + this.Document.title });
-                        DocUtils.assignImageInfo(info, img);
-                        this._props.addDocTab(img, OpenWhere.addRight);
-                    });
-                },
-                icon: 'expand-arrows-alt',
-            });
+            }); // prettier-ignore
             funcs.push({ description: 'Copy path', event: () => ClientUtils.CopyText(this.choosePath(field.url)), icon: 'copy' });
             funcs.push({ description: 'Open Image Editor', event: this.docEditorView, icon: 'pencil-alt' });
             this.layoutDoc.ai &&
-- 
cgit v1.2.3-70-g09d2

