diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/publish_docs_to_wiki b/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/publish_docs_to_wiki
deleted file mode 100644
index aef8c2ac2d5203c26e2c8a351528d0991e6e1138..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/publish_docs_to_wiki
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Publish docs to Wiki
-
-# Trigger this action only if there are changes pushed to the docs/** directory under the main branch
-on:
- push:
- branches:
- - main # This can be changed to any branch of your preference
-
-env:
- USER_TOKEN: ${{ secrets.WIKI_ACTION_TOKEN }} # This is the repository secret
- USER_NAME: AbdullahAlfaraj # Enter the username of your (bot) account
- USER_EMAIL: 7842232+AbdullahAlfaraj@users.noreply.github.com # Enter the e-mail of your (bot) account
- OWNER: ${{ github.event.repository.owner.name }} # This is the repository owner
- REPOSITORY_NAME: ${{ github.event.repository.name }} # This is the repository name
-
-jobs:
- publish_docs_to_wiki:
- name: Publish docs to Wiki
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- # 1. Create folder named `tmp_wiki`
- # 2. Initialize Git
- # 3. Pull old Wiki content
- - name: Pull content from wiki
- run: |
- mkdir tmp_wiki
- cd tmp_wiki
- git init
- git config user.name $USER_NAME
- git config user.email $USER_EMAIL
- git pull https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git
- # 4. Synchronize differences between `docs` & `tmp_wiki`
- # 5. Push new Wiki content
- - name: Push content to wiki
- run: |
- rsync -av --delete docs/ tmp_wiki/ --exclude .git
- cd tmp_wiki
- git add .
- git commit -m "Update Wiki content"
- git push -f --set-upstream https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git master
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki-sync-action.yml b/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki-sync-action.yml
deleted file mode 100644
index 672f18d4555d6b58d30241522ac7a61a1690b022..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki-sync-action.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-name: Wiki Sync
-jobs:
- update-wiki:
- runs-on: ubuntu-latest
- steps:
-# - name: wiki-safe
-# run: |
-# git config --global --add safe.directory /wiki
- - uses: actions/checkout@master
- - name: Sync Wiki
-# uses: joeizzard/action-wiki-sync@master
- uses: AbdullahAlfaraj/ghaction-wiki-sync@master
-
-
- with:
- username: AbdullahAlfaraj
- access_token: ${{ secrets.WIKI_ACTION_TOKEN }}
- wiki_folder: docs
- commit_username: 'AbdullahAlfaraj '
- commit_email: '7842232+AbdullahAlfaraj@users.noreply.github.com'
- commit_message: 'action: wiki sync'
-
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki_action_2 b/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki_action_2
deleted file mode 100644
index 4d741935b5aa3b9c4d1bea067ed5d723157fa7ac..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.github/workflows/wiki_action_2
+++ /dev/null
@@ -1,23 +0,0 @@
-name: Deploy Wiki
-
-on:
- push:
- branches:
- # And only on master branch
- - master
-
-jobs:
- deploy-wiki:
- runs-on: ubuntu-latest
- steps:
-
- - name: Push Wiki Changes
- uses: Andrew-Chen-Wang/github-wiki-action@v3
- env:
- # Make sure you have that / at the end. We use rsync
- # WIKI_DIR's default is wiki/
- WIKI_DIR: docs/
- GH_TOKEN: ${{ secrets.WIKI_ACTION_TOKEN }}
- GH_MAIL: 7842232+AbdullahAlfaraj@users.noreply.github.com
- GH_NAME: ${{ github.repository_owner }}
- EXCLUDED_FILES: "a/ b.md"
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.gitignore b/Auto-Photoshop-StableDiffusion-Plugin/.gitignore
deleted file mode 100644
index eb85a81c800ce528fa87cd0869ebd743080bf184..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.gitignore
+++ /dev/null
@@ -1,34 +0,0 @@
-**/__pycache__
-env
-/server_env
-/tmp
-/outputs
-/log
-/.idea
-/.vscode
-/.git
-/.github
-test.bat
-server/python_server/output/*
-server/python_server/init_images/*
-node_modules/
-server/python_server/prompt_shortcut.json
-experimental/
-start_server.sh
-start_server.bat
-*.ccx
-expanded_mask.png
-original_mask.png
-/config
-
-/jimp/*
-!/jimp/browser/
-/jimp/browser/examples
-/jimp/browser/*.md
-/jimp/browser/*.editorconfig
-/jimp/browser/lib/jimp.js
-
-
-# comments when packaging:
-ultimate_sd_upscaler/dist/*LICENSE.txt
-ultimate_sd_upscaler/dist/*.bundle.js
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.prettierignore b/Auto-Photoshop-StableDiffusion-Plugin/.prettierignore
deleted file mode 100644
index ac336ae1a550ee74a03fac92ec1c2777afd8bb3b..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.prettierignore
+++ /dev/null
@@ -1,3 +0,0 @@
-server/python_server/output/*
-*.md
-manifest.json
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/.prettierrc b/Auto-Photoshop-StableDiffusion-Plugin/.prettierrc
deleted file mode 100644
index e74ed9ff357859b4fe43a022c49f14813553c400..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/.prettierrc
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "trailingComma": "es5",
- "tabWidth": 4,
- "semi": false,
- "singleQuote": true
-}
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/LICENSE.md b/Auto-Photoshop-StableDiffusion-Plugin/LICENSE.md
deleted file mode 100644
index 40defe74a871b99597dfdd88eeafad14daa03b4e..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2022 Abdullah Alfaraj
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/README.md b/Auto-Photoshop-StableDiffusion-Plugin/README.md
deleted file mode 100644
index f86edd44c538fe1878948c857e568a313d64d35a..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/README.md
+++ /dev/null
@@ -1,202 +0,0 @@
-
-
-# Auto-Photoshop-StableDiffusion-Plugin
-[](https://www.patreon.com/AbdullahAlfaraj)
-[![discord badge]][discord link]
-
-[discord badge]: https://flat.badgen.net/discord/members/3mVEtrddXJ
-[discord link]: https://discord.gg/3mVEtrddXJ
-
-
-
-With Auto-Photoshop-StableDiffusion-Plugin, you can directly use the capabilities of Automatic1111 Stable Diffusion in Photoshop without switching between programs. This allows you to easily use Stable Diffusion AI in a familiar environment. You can edit your Stable Diffusion image with all your favorite tools and save it right in Photoshop.
-
-# Table of Contents
-- [Auto-Photoshop-StableDiffusion-Plugin](#auto-photoshop-stablediffusion-plugin)
-- [Table of Contents](#table-of-contents)
-- [Demo:](#demo)
-- [Support Us On Patreon](#support-us-on-patreon)
-- [How to Install](#how-to-install)
- - [Method 1: One Click Installer](#method-1-one-click-installer)
- - [Method 2: The Unzip Method](#method-2-the-unzip-method)
- - [Method 3: The UXP Method (for Developers/Programmers Only)](#method-3-the-uxp-method-instruction-for-developers)
-
-- [FAQ and Known Issues](#faq-and-known-issues)
- - [What Photoshop version do I need to run the plugin?](#what-photoshop-version-do-i-need-to-run-the-plugin)
- - [Path Doesn't Exist](#path-doesnt-exist)
- - [Plugin Load Failed](#plugin-load-failed)
- - [No application are connected to the service](#no-application-are-connected-to-the-service)
- - [Load command failed in App with ID PS and Version X.X.X](#load-command-failed-in-app-with-id-ps-and-version-xxx)
- - [Exception in ASGI application / Expecting value: line 1 column 1](#exception-in-asgi-application--expecting-value-line-1-column-1)
- - [No Generations and Plugin Server doesn't send messages. (Remote setup)](#no-generations-and-plugin-server-doesnt-send-messages-remote-setup)
-
-- [No GPU Options](#no-gpu-options)
- - [Stable Horde](#stable-horde)
- - [Colab](#colab)
-
-# Support Us On Patreon:
-By supporting us on [Patreon](https://www.patreon.com/AbdullahAlfaraj), you’ll help us continue to develop and improve the Auto-Photoshop-StableDiffusion-Plugin, making it even easier for you to use Stable Diffusion AI in a familiar environment. As a supporter, you’ll have the opportunity to provide feedback and suggestions for future development. Plus, you’ll get early access to new features and tutorials, as well as exclusive art tutorials and tips from a professional artist. We’re passionate about making AI approachable to artists and with your help, we can continue to do just that.
-# Auto-Photoshop-SD Backers and Sponsors:
-**💎 Diamond:**
-| [](https://ronnykhalil.com/) |  | 
-|:---:|:---:|:---:|
-| [Ronny Khalil](https://ronnykhalil.com/) | zachary | Razvan Matei
-
-**🥇 Gold:**
-|  |  |  | 
-|:---:|:---:|:---:|:---:|
-| Alex | Florin-Alexandru Ilinescu | Robin Edwards | Danny Sahagun
-
-**🥈 Silver:**
-|  |  |  |  |  |  |  |  |  |  | 
-|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
-| Amith Thomas | Olivier Lefebvre | xiao yuan | Ezra Blake | Zenko | Frederic Dreuilhe | Kevin Schofield | darius coal | Kerwin | The Dread Vixen Alinsa | Chris Canterbury
-
-**🥉 Copper:**
-|  |  |  | 
-|:---:|:---:|:---:|:---:|
-| Sebastian Karbowniczek | Arthur Liu | Juan Pablo Mendiola | Bruce Hunter
-
-
-
-
-
-
-
-
-
-
-
-
-
-# How To Install:
-Use method 1 or 2 if you are an Artist
-use method 3 if you are a Developer/Programmer
-
-
-# Method 1: One Click Installer
-
-1) Download the [.ccx](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/releases/latest) file
-2) run the ccx file . that's all. you will be able to use all of stable diffusion modes (txt2img, img2img, inpainting and outpainting), check the [tutorials](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/wiki) section to master the tool.
-
-
-
-
-3) (optional step) Install the Auto-Photoshop-SD Extension from Automatic1111. the extension will allow you to use the smart masking and image search features
- - a) Copy Auto-Photoshop plugin url
-
-
-- b) Paste the url in auto1111's extension tab and click install
-
-
-
-- c) Make sure the Auto-Photoshop plugin is listed, then click "Apply and Restart UI"
-
-
-
-
-
-# Method 2: The Unzip Method
-1) Download the [.zip](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/releases/latest) file
-2) Unzip it in a folder with the same name
-3) move the unzipped folder to the Photoshop Plugin folder
-4) (optional step) Install the Auto-Photoshop-SD Extension from Automatic1111. the extension will allow you to use the smart masking and image search features
-
-
-
-
-# Method 3: The UXP method (Instruction for Developers):
-For artists we recommend you use [the one click installer](#one-click-installer). If you are a developer Watch the any of these videos or follow the instruction bellow.
-
-
-
-
-
-For artists we recommend you use [the one click installer](#one-click-installer)
-## First time running the plugin (local Automatic1111):
-1) download the plugin:
-```
-git clone https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin.git
-```
-2) open cmd window in the "Auto-Photoshop-StableDiffusion-Plugin" directory and then install the dependencies by typing:
-```
-npm install
-```
-3) build the plugin by transpiling typescript to javascript:
-```
-npm run watch
-```
-
-4) run "start_server.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory
-5) go to where you have [automatic1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) installed.
-Edit the "webui-user.bat" in automatic1111
- change this line
-```
-set COMMANDLINE_ARGS=
-```
-to
-```
-set COMMANDLINE_ARGS= --api
-```
-that will allow the plugin to communicate with the automatic1111 project. After saving close the "webui-user.bat" file and run it normally.
-
-6) run photoshop. go to edit -> prefrences -> plugins
- 1) make sure you check "Enable Developer Mode" checkbox
-7) install "Adobe UXP Developer Tool" from here [Installation (adobe.com)](https://developer.adobe.com/photoshop/uxp/devtool/installation/)
- this tool will add the plugin into photoshop
-8) run Adobe UXP Developer Tool and click on "Add Plugin" button in the top right. Navigate to where you have "Auto-Photoshop-StableDiffusion-Plugin" folder and open "manifest.json"
-9) select the plugin and click on Actions -> Load Selected
-that's it.
-
-## First time running the plugin (remote Automatic1111):
-__The remote webui must also have `--api` set in `COMMANDLINE_ARGS`. You can check if api access is enabled by appending "/docs#" to the end of the url. If the documentation includes `/sdapi/v1/samplers` then api access is enabled.__
-
-1) download the plugin:
-```
-git clone https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin.git
-```
-1) edit [start_server.bat](start_server.bat) (or start_server.sh if on linux) to point to the remote installation of Automatic1111
-2) run "start_server.bat" inside "Auto-Photoshop-StableDiffusion-Plugin" directory
-3) run photoshop. go to edit -> prefrences -> plugins
- 1) make sure you check "Enable Developer Mode" checkbox
-4) install "Adobe UXP Developer Tool" from here [Installation (adobe.com)](https://developer.adobe.com/photoshop/uxp/devtool/installation/)
- this tool will add the plugin into photoshop
-5) run Adobe UXP Developer Tool and click on "Add Plugin" button in the top right. Navigate to where you have "Auto-Photoshop-StableDiffusion-Plugin" folder and open "manifest.json"
-6) select the plugin and click on Actions -> Load Selected
-that's it.
-
-
-
-
-
-
-# Demo:
-[](https://youtu.be/VL_gbQai79E "Stable diffusion AI Photoshop Plugin Free and Open Source")
-
-
-# FAQ and Known Issues
-## What Photoshop version do I need to run the plugin?
-The minimum Photoshop version that the plugin supports is Photoshop v24
-
-## Plugin Load Failed
-There are a few issues that can result in this error, please follow the instructions for the corresponding error message in the UDT logs
-
-### No application are connected to the service
-This error occurs when Photoshop is not started before the plugin is attempted to be loaded. Simply start photoshop then restart UXP and load the plugin
-
-
-## Exception in ASGI application / Expecting value: line 1 column 1
-This error occurs due to mismatched expectations between the plugin and the Automatic1111 backend.
-It can be solved by both updating the version of the Automatic111 backend to the latest verion, and making sure "Save text information about generation parameters as chunks to png files" setting is enabled within the UI.
-
-## No Generations and Plugin Server doesn't send messages. (Remote setup)
-This error occurs when the remote server does not have the api enabled. You can verify this by attempting to go to the URL you access the webui at and appending "/docs#" to the end of the url. If you have permissions, make relaunch the remote instance with the "--api" flag.
-
-# No GPU Options:
-we provide two options to use the auto-photoshp plugin without GPU.
-## Stable Horde
-This is an awesome free crowdsourced distributed cluster of Stable Diffusion workers. If you like this service, consider joining the horde yourself!
-the horde is enabled completely by the generosity of volunteers so make sure you don't overwhelm the service and help join the cause if you can.
-read more on their [GitHub page](https://github.com/db0/AI-Horde)
-## Colab:
-we link to this [Colab](https://colab.research.google.com/drive/1nbcx_WOneRmYv9idBO33pN5CbxXrqZHu?usp=sharing#scrollTo=Y4ebYsPqTrGb) directly inside plugin find it in the settings tab. you only need to run it. no need to change any of the settings. copy the gradio.live url the colab will generate and paste it into ```sd url``` field in the settings tab.
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/dialog_box.js b/Auto-Photoshop-StableDiffusion-Plugin/dialog_box.js
deleted file mode 100644
index 1dc465fbc33b67595f5727926c02aef32fba3caf..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/dialog_box.js
+++ /dev/null
@@ -1,78 +0,0 @@
-async function prompt(
- heading,
- body,
- buttons = ['Cancel', 'Ok'],
- options = { title: heading, size: { width: 360, height: 280 } }
-) {
- const [dlgEl, formEl, headingEl, dividerEl, bodyEl, footerEl] = [
- 'dialog',
- 'form',
- 'sp-heading',
- 'sp-divider',
- 'sp-body',
- 'footer',
- ].map((tag) => document.createElement(tag))
- ;[headingEl, dividerEl, bodyEl, footerEl].forEach((el) => {
- el.style.margin = '6px'
- el.style.width = 'calc(100% - 12px)'
- })
-
- formEl.setAttribute('method', 'dialog')
- formEl.addEventListener('submit', () => dlgEl.close())
-
- footerEl.style.marginTop = '26px'
-
- dividerEl.setAttribute('size', 'large')
-
- headingEl.textContent = heading
-
- bodyEl.textContent = body
-
- buttons.forEach((btnText, idx) => {
- const btnEl = document.createElement('sp-button')
- btnEl.setAttribute(
- 'variant',
- idx === buttons.length - 1 ? btnText.variant || 'cta' : 'secondary'
- )
- if (idx === buttons.length - 1)
- btnEl.setAttribute('autofocus', 'autofocus')
- if (idx < buttons.length - 1) btnEl.setAttribute('quiet')
- btnEl.textContent = btnText.text || btnText
- btnEl.style.marginLeft = '12px'
- btnEl.addEventListener('click', () =>
- dlgEl.close(btnText.text || btnText)
- )
- footerEl.appendChild(btnEl)
- })
- ;[headingEl, dividerEl, bodyEl, footerEl].forEach((el) =>
- formEl.appendChild(el)
- )
- dlgEl.appendChild(formEl)
- document.body.appendChild(dlgEl)
-
- return dlgEl.uxpShowModal(options)
-}
-
-// const r1 = await prompt(
-// 'Upload Large File',
-// 'This is a large file (over 100MB) -- it may take a few moments to upload.',
-// ['Skip', 'Upload']
-// )
-// if ((r1 || 'Upload') !== 'Upload') {
-// /* cancelled or No */
-// } else {
-// /* Yes */
-// }
-
-// const r2 = await prompt(
-// 'Delete File',
-// 'Are you sure you wish to delete this file? This action cannot be undone.',
-// ['Cancel', { variant: 'warning', text: 'Delete' }]
-// )
-// if (r2 !== 'Delete') {
-// /* nope, don't do it! */
-// } else {
-// /* Do the delete */
-// }
-
-module.exports = { prompt }
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Generate txt2img.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/Generate txt2img.gif
deleted file mode 100644
index 464a9a5fa55f6e50169cf9b1c4cdef0758b6d1e5..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Generate txt2img.gif and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/History.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/History.gif
deleted file mode 100644
index 2a838dfa87e32f164fab837c25f392dffe54cc66..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/History.gif and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Home.md b/Auto-Photoshop-StableDiffusion-Plugin/docs/Home.md
deleted file mode 100644
index e75f1ceb9d62c74e6f5653df0bdc4350e1309561..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/Home.md
+++ /dev/null
@@ -1,217 +0,0 @@
-
-*Version 1.1.0*
-
-## Introduction
-
-This guide explains the Auto Photoshop UI and its main features, it doesn't go into any detail of how Stable Diffusion works or the functionalities implemented by AUTOMATIC1111. For the latter you can read the manual [here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features).
-
-## Stable Diffusion UI Tab
-
-![[Pasted image 20230131191554.png]]
-
-- **Model Selection** - allows to select the .ckpt / .safetensors model to be used for image generation.
-- **Refresh** - refreshes the models. *Note*: this will extract all loaded models in AUTOMATIC1111, if you want to add a new model, first refresh AUTOMATIC1111.
-- **L2S (Layer to selection)** - convenience function to move the content of the currently selected layer into the photoshop selection.
-- **Snapshot** - convenience function equivalent to "ALT + Merge Visible Layers"
-- **Reset** - reset UI to default values
-- **Prompt Shortcut** - enables prompt shortcuts
-- Prompt - text area for the image generation prompt
-- Negative Prompt - text area for the image generation negative prompt
-
-### txt2img
-
-[[Pasted image 20230131192430.png]]
-
-- **Images**: number of images to be generated in a single generation session
-- **Steps**: number of steps
-- **Selection Mode Ratio**: the generation dimension will be set automatically to match the proportion of the photoshop selection, using 512 as the base value.
-- **Selection Mode Precise**: the generation dimension will be set to match exactly the photoshop selection.
-- **Selection Mode Ignore**: the generation dimension are set by the user.
-- **Width and Heigth**: the image generation dimensions
-- **CFG Scale**: Influence strength of the prompt (for details please see the AUTOMATIC1111 wiki)
-- **Restore Faces**: enables the restore faces function in AUTOMATIC1111
-- **Hi Res Fix**: enables the Hi Res Fix function in AUTOMATIC1111 (see below)
-- **Seed**: Displays and edit current seed (-1 = Random)
-- **Random / Last**: sets seed to either random or last generation
-- **Show Samplers**: allows to select the sampler used for image generation
-
-**Hi Res Fix**
-
-[[Pasted image 20230131195947.png]]
-
-When Hi Res is checked, a number of parameters become avaiable including Upscaler model to be used, output dimensions and denoising strength. This is just an interface into the AUTOMATIC1111 functionality described [here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#hires-fix).
-
-### img2img
-
-[[Pasted image 20230131200253.png]]
-
-- **Image**: shows the current image used as img2img base.
-- **Denoising Strength**: how much Stable Diffusion should be influenced by the image, 0 = output is same as image, 1 = completely different image.
-- **Inpainting conditioning mask strength**; this field only works with inpainting special models (ending in "-inpainting."). Determines how much the process should stick to the image structure, check out [this post](https://www.reddit.com/r/StableDiffusion/comments/yi46px/new_hidden_img2img_feature_conditioning_mask/) for details.
-
-### inpaint
-
-[[Pasted image 20230131201122.png]]
-
-- **Image / Mask**: show image and mask used for the inpaint process
-- **Denoising Strength**: similar to img2img however it behaves differently depending on Mask Content context.
-- **Mask Blur**: how much to blur the mask before processing it in pixels
-- **Mask Expansion**: how much the mask should expand to create a more blended output image
-- Mask Content Fill: fill it with colors of the image
-- Mask Content original: keep whatever was there originally
-- Mask Content latent noise: fill it with latent space noise
-- Mask Content latent nothing: fill it with latent space zeros
-- **Inpaining at Full Res**: have a look [here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/4637) for an explanation of this feature.
-- **Restore Faces**: same as img2img
-
-### outpaint
-
-UI and its functionality are same as inpaint.
-
-
-
-
-
-
-
-## Viewer
-
-Tab to manage the images generated in the current session.
-
-[[Pasted image 20230131202255.png]]
-
-- Set Mask: manually sets the currently selected mask
-- Set Init Image: manually sets the currently selected image
-- Generate More: adds more generated images to the current session
-- Selection Area: selects the boundaries of the currently selected image in the viewer
-- [[Pasted image 20230131202517.png]] Keep all images generated in the current session
-- [[Pasted image 20230131202539.png]] Discard all images generated in the current session
-- [[Pasted image 20230131202558.png]] Keep only the selected image in the viewer
-- [[Pasted image 20230131202638.png]] Discard the selected image in the viewer
-
-## History
-
-[[Pasted image 20230201161508.png]]
-
-- **Load Previous Generations**: loads the images generated within this Photoshop file.
-- [[Pasted image 20230201161716.png]] hovering on the image loaded from history will allow bringing the image back into the Photoshop Layer stack
-- Clicking on the image will load the pluging settings for the image generation (seed and image generation configuration)
-- **Image Search**: loads a set of images from the internet, clicking on any of the images will load them into the layer stack.
-
-## Prompts Library
-
-[[Pasted image 20230201161938.png]]
-
-- For this to work a file will need to be created in the following location: Auto-Photoshop-StableDiffusion-Plugin\\server\\python_server\\prompt_shortcut.json
-- **Load / Save**: Once the file is present, values can be loaded and saved onto the file.
-- **Key / Value / Add top Prompt Shortcut**: allows to change / add values to the existing json file.
-- **Refresh Menu**: will load all values from the json, allowing the user to make changes to the value.
-
-## Horde
-
-Coming Soon
-
-## Settings
-
-[[Pasted image 20230201163236.png]]
-
-# Tutorials
-
-## Generate a txt2img
-
-[[Generate txt2img.gif]]
-
-1. Make a selection where you want the image to be generated
-2. Press [[Pasted image 20230203191656.png]]
-3. (optional) use the Viewer to select which images to keep in case of multiple image generation
-
-## Using the Viewer
-
-[[Viewer Tutorial.gif]]
-1. Generate images as usual
-2. Select the image in the viewer grid (shift + click for multiple selection)
-3. Choose from: keep one, discard one, keep all, discard all.
-4. Images are saved in the latest session layer folder.
-
-## History Tab
-
-[[History.gif]]
-
-1. Load Previous Generations button
-2. Single click on image to load its settings in the Stable Diffusion tab (seed, prompt, etc)
-3. Click on edit button to load the image in Photoshop
-
-## Generate an img2img
-
-[[img2img.gif]]
-
-1. Select the portion of the image to be used as a sample
-2. Select img2img mode and adjust the parameters (denoising strenght especially)
-3. Press Generate img2img
-4. (optional) use the Viewer to select which images to keep in case of multiple image generation
-
-## Prompts Shortcut
-you can substitute a whole sequence of words with one word.
-
-Instead of writing the following as a prompt :
-```
-Unreal Engine, Octane Render, arcane card game ui, hearthstone art style, epic fantasy style art
-```
-you could write:
-```
-{game_like}
-```
-
-as long as you have defined the relationship in the prompt library tab
-```
-{
-"game_like": "Unreal Engine, Octane Render, arcane card game ui, hearthstone art style, epic fantasy style art"
-}
-```
-
-
-[[prompt_shortcut_file.gif]]
-
-
-### Editing and Using a Prompt File
-[[prompt_shortcut.gif]]
-
-1. Switch to the *Prompt Shortcut* tab.
-2. Load the json file.
-3. Input a keyword and its value
-4. Press *Add to Prompt Shortcut*
-5. Now the new Prompt Shortcut can be used in the Stable Diffusion tab
-6. To reuse previously saved shortcuts, ensure you load the json file at the start of each session.
-
-## Inpainting
-
-[[inpainting.gif]]
-
-1. Select inpainting mode in the Stable Diffusion tab
-2. Select the target area where to produce the image using rectangular marquee tool
-3. With a 100% opacity white brush paint the area that you wish to inpaint
-4. Ensure that you have a -inpainting.ckpt model selected (this is as important as it is easy to forget)
-5. Write a prompt describing the inpaining image
-6. Select the desired Mask Content option and adjust the Denoising Strength accordingly.
-7. Hit Generate
-
-## Outpainting
-
-[[outpainting.gif]]
-
-1. Select outpainting mode in the Stable Diffusion tab
-2. Select the target area where to produce the image using rectangular marquee tool, ensure that you have **some overlap** with the existing image (to provide Stable Diffusion with some context) and that the target area is **transparent**.
-4. Ensure that you have a -inpainting.ckpt model selected (this also works for outpainting)
-5. Write a prompt describing the outpaining image
-6. Select the desired Mask Content option and adjust the Denoising Strength accordingly.
-7. Hit Generate
-
-
-## Heal Brush
-[[heal_brush.gif]]
-1. Select the "Heal Brush" from the Smart Preset dropdown menu in the Stable Diffusion tab
-2. Select the target area where to produce the image using rectangular marquee tool
-3. With a 100% opacity white brush paint the area that you wish to erase
-4. Ensure that you have a -inpainting.ckpt model selected (this is as important as it is easy to forget)
-5. Write a prompt describing what you would like to see in the erased area
-6. Hit Generate
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131191554.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131191554.png
deleted file mode 100644
index 32d3ce6ef6462b1e06e8334e46b438499b799780..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131191554.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131192430.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131192430.png
deleted file mode 100644
index 2096769404bf5c9f5d076c5b1190204656bff56e..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131192430.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131195947.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131195947.png
deleted file mode 100644
index cbe557f01e5797c9658c9614032e173fb835f89c..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131195947.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131200253.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131200253.png
deleted file mode 100644
index ccb94732cbcbc8556c10c56f18716bb9542d23af..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131200253.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131201122.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131201122.png
deleted file mode 100644
index ecb30a650a1b7d979c2cb2ba80f1d4167e748cbb..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131201122.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202243.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202243.png
deleted file mode 100644
index 3c5741c04d7ab62fb0713b40325f677baffbed37..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202243.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202255.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202255.png
deleted file mode 100644
index 656ee27e33d727945644c03081087262f60866a0..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202255.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202517.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202517.png
deleted file mode 100644
index 7813831719d2663b6680cf985078e509e9cea52e..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202517.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202539.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202539.png
deleted file mode 100644
index 21cafed8431910694f0441c7806f256eba1ea360..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202539.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202558.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202558.png
deleted file mode 100644
index 528ec47b046192d367d0fe905daff89877916277..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202558.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202638.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202638.png
deleted file mode 100644
index b31045d228f92712145361a845c3caddc328ea4c..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230131202638.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161508.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161508.png
deleted file mode 100644
index 49b64a43f29084aa23a86288337e31ff7d63de51..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161508.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161702.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161702.png
deleted file mode 100644
index e1b01cf7cb8930b7ffac45b63e878aabc6774d58..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161702.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161716.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161716.png
deleted file mode 100644
index 4e7570f23776fbb90c00384be01ea1eb2a488a9b..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161716.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161938.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161938.png
deleted file mode 100644
index 4079ed607d027e91ec7ce52ea026abd403c37b78..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201161938.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201163236.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201163236.png
deleted file mode 100644
index 34b0eb9e7ee697d7c2817bd3283428a574a0f446..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230201163236.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230203191656.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230203191656.png
deleted file mode 100644
index fa599c3a8ec03a5c179f9c15569f28440fe52ff8..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Pasted image 20230203191656.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/Viewer Tutorial.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/Viewer Tutorial.gif
deleted file mode 100644
index bcbd6027de97ade094d85d5387487f4e43960379..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/Viewer Tutorial.gif and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/become_backer.svg b/Auto-Photoshop-StableDiffusion-Plugin/docs/become_backer.svg
deleted file mode 100644
index e579e6775016deb4ac0bce951174a64cfe32b5ee..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/become_backer.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/heal_brush.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/heal_brush.gif
deleted file mode 100644
index 314be506690706557eba30a535d99f53136176ff..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/heal_brush.gif
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a94657edb055db5f57e14abad8734d4e0945e8f9d22b560624a31a7d5ce074a9
-size 8836551
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/img2img.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/img2img.gif
deleted file mode 100644
index 08ff2c12dc318abc824cf1c0bc509a2113b8fd6a..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/img2img.gif and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/inpainting.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/inpainting.gif
deleted file mode 100644
index b6ebbc9521065fbd4d558ebf35ad9141a0c14523..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/inpainting.gif
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:52c2e707ffbf663b74569903d465f193ac34e8f029ef1bec70d6fa22f9277f9d
-size 1113396
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/outpainting.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/outpainting.gif
deleted file mode 100644
index 6c990ee692eca7fe5c9e90c5010bc92034c13366..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/outpainting.gif
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ebfba658009c4764b60f49bfaa4215b911519cd8017dd92105f2c839db01cb05
-size 1042115
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/A934E4F0-7778-47E9-A395-531BFF2E61F1_1_105_c.jpeg b/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/A934E4F0-7778-47E9-A395-531BFF2E61F1_1_105_c.jpeg
deleted file mode 100644
index a8afe063ad3ac5fc919e8a6b33fd281cf914b157..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/A934E4F0-7778-47E9-A395-531BFF2E61F1_1_105_c.jpeg and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/no_profile.png b/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/no_profile.png
deleted file mode 100644
index 8cb805a9b6273c510ecea3fb58709d26edda2cf0..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/profile_image/no_profile.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut.gif
deleted file mode 100644
index 069064c020be7853f2b7d8242b3984793beaa7c0..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut.gif
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:881c55db83b01547b81eb58456d28cca2c2b66a30ce45befeff97f479104ae92
-size 1008480
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut_file.gif b/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut_file.gif
deleted file mode 100644
index 95f1df198dfe15de3ec36618f9ee68a0d64bd279..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/docs/prompt_shortcut_file.gif and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/enum.js b/Auto-Photoshop-StableDiffusion-Plugin/enum.js
deleted file mode 100644
index 1cf996a2d24772beb9f87070a4a1582bfc2be3e2..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/enum.js
+++ /dev/null
@@ -1,57 +0,0 @@
-const clickTypeEnum = {
- Click: 'click',
- ShiftClick: 'shift_click',
- AltClick: 'alt_click',
- SecondClick: 'second_click', //when we click a thumbnail that is active/ has orange border
-}
-const generationModeEnum = {
- Txt2Img: 'txt2img',
- Img2Img: 'img2img',
- Inpaint: 'inpaint',
- Outpaint: 'outpaint',
- Upscale: 'upscale',
-}
-
-const AutomaticStatusEnum = {
- NoApi: 'no_api',
- Offline: 'offline',
- RunningNoApi: 'running_no_api',
- RunningWithApi: 'running_with_api',
-}
-
-const ViewerObjectTypeEnum = {
- OutputImage: 'output_image',
- InitImage: 'init_image',
- MaskImage: 'mask_image',
-}
-
-const RequestStateEnum = {
- Generating: 'generating', // in the generation process
- Interrupted: 'interrupted', // canceled/ interrupted
- Finished: 'finished', // finished generating
-}
-const DocumentTypeEnum = {
- NoBackground: 'no_background',
- ImageBackground: 'image_background',
- SolidBackground: 'solid_background',
- ArtBoard: 'artboard',
-}
-const BackgroundHistoryEnum = {
- CorrectBackground: 'correct_background',
- NoBackground: 'no_background',
-}
-
-const PresetTypeEnum = {
- SDPreset: 'sd_preset',
- ControlNetPreset: 'controlnet_preset',
-}
-module.exports = {
- clickTypeEnum,
- generationModeEnum,
- AutomaticStatusEnum,
- ViewerObjectTypeEnum,
- RequestStateEnum,
- DocumentTypeEnum,
- BackgroundHistoryEnum,
- PresetTypeEnum,
-}
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/helper.js b/Auto-Photoshop-StableDiffusion-Plugin/helper.js
deleted file mode 100644
index 58993d84abe3bc26f33bcfb45bd3f278b0716e91..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/helper.js
+++ /dev/null
@@ -1,120 +0,0 @@
-const { unselectActiveLayers } = require('./psapi')
-
-const app = window.require('photoshop').app
-
-function getActiveLayer() {
- let activeLayers = app.activeDocument.activeLayers
- // console.dir(getSize())
- for (const layer of activeLayers) {
- console.dir({ layer })
- const name = layer.name
- console.dir({ name })
- let layer_size = getLayerSize(layer)
- console.dir({ layer_size })
- }
-
- return activeLayers[0]
-}
-
-function getSize() {
- let doc = app.activeDocument
- return { height: doc.height, width: doc.width }
-}
-
-const { batchPlay } = require('photoshop').action
-const { executeAsModal } = require('photoshop').core
-
-async function reselectBatchPlay(selectionInfo) {
- const result = await batchPlay(
- [
- {
- _obj: 'set',
- _target: [
- {
- _ref: 'channel',
- _property: 'selection',
- },
- ],
- to: {
- _obj: 'rectangle',
- top: {
- _unit: 'pixelsUnit',
- _value: selectionInfo.top,
- },
- left: {
- _unit: 'pixelsUnit',
- _value: selectionInfo.left,
- },
- bottom: {
- _unit: 'pixelsUnit',
- _value: selectionInfo.bottom,
- },
- right: {
- _unit: 'pixelsUnit',
- _value: selectionInfo.right,
- },
- },
- _options: {
- dialogOptions: 'dontDisplay',
- },
- },
- ],
- {
- synchronousExecution: true,
- modalBehavior: 'execute',
- }
- )
-}
-
-async function reselect(selectionInfo) {
- await executeAsModal(
- async () => {
- reselectBatchPlay(selectionInfo)
- },
- { commandName: 'reselect' }
- )
-}
-
-//unselect the rectangular marquee selection area
-async function unSelect() {
- const batchPlay = require('photoshop').action.batchPlay
-
- const result = await batchPlay(
- [
- {
- _obj: 'set',
- _target: [
- {
- _ref: 'channel',
- _property: 'selection',
- },
- ],
- to: {
- _enum: 'ordinal',
- _value: 'none',
- },
- _options: {
- dialogOptions: 'dontDisplay',
- },
- },
- ],
- {
- synchronousExecution: true,
- modalBehavior: 'execute',
- }
- )
-
- return result
-}
-
-/**
- * Convert 1d index to 2d array
- * @param {number} index sequential index
- * @param {number} width width of 2d array
- * @returns {number[]} [x,y]
- */
-function indexToXY(index, width) {
- return [index % width, Math.floor(index / width)]
-}
-
-module.exports = {}
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.png
deleted file mode 100644
index 2ed421a6589c2c1d00a64a607cc7292d04794665..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.svg
deleted file mode 100644
index b8f9be7224df75d57cea95656df63d583936c690..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_all.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.png
deleted file mode 100644
index 02ae1812211925aaca8709c4a6b6476c6c6ad640..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.svg
deleted file mode 100644
index 30342c626fd32ad6de9e80ed650c2c3085c07a76..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/accept_selected.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.png
deleted file mode 100644
index 269d032083d2032a727bb3eeae14c619bfe946b2..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.svg
deleted file mode 100644
index ad13b59d600fba630f8e70be1b8871973e52d8c6..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/camera_icon.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_black.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_black.svg
deleted file mode 100644
index 369d25bbecea0e5fdc52b88a57793d3ca76417bf..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_black.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_white.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_white.svg
deleted file mode 100644
index 2446502430e86985135696c449a6bd4a1fe4fc05..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/chain_white.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.png
deleted file mode 100644
index 9980537c03734b70be3ed9caaf264c8022bc0f60..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.svg
deleted file mode 100644
index e290f419b29b905a23acbc963f302f41964d51fa..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all_border.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all_border.png
deleted file mode 100644
index 9fd31736256478b66fb5f7dd3b82e9b7e46c0586..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_all_border.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.png
deleted file mode 100644
index 6f5507a6cfc06c288e0a4d9a4eacc66e2f4cc70b..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.svg
deleted file mode 100644
index 8ffdc69272ef15bc398c5de26ca9e5c5609dace3..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected_border.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected_border.png
deleted file mode 100644
index 40c5ec9899564ac65a797b2286490f8fb115449f..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/discard_selected_border.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/ftcopy.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/ftcopy.svg
deleted file mode 100644
index c6da22d37ecb544cb6f94993a5326c2b45d1eaa2..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/ftcopy.svg
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_D.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_D.png
deleted file mode 100644
index 420a119633ed630e717e82c3b4b3adcf9ce9158b..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_D.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_N.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_N.png
deleted file mode 100644
index 420a119633ed630e717e82c3b4b3adcf9ce9158b..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/icon_N.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/image-search.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/image-search.svg
deleted file mode 100644
index 342def6d012500c89811b2dc9c850682fd235c5e..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/image-search.svg
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/layer_to_selection.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/layer_to_selection.svg
deleted file mode 100644
index c78a7c1db078307bb7b95419ddb9cb1eb32ceed2..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/layer_to_selection.svg
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings.png
deleted file mode 100644
index 084cb50d6d0cc1132d7194ffc8052ceee7b88576..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings2.png b/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings2.png
deleted file mode 100644
index da2a6dc67344b9458c4608b94159cf51447bed5a..0000000000000000000000000000000000000000
Binary files a/Auto-Photoshop-StableDiffusion-Plugin/icon/reset_settings2.png and /dev/null differ
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/search.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/search.svg
deleted file mode 100644
index 16e7b461ac7dd41e86cdb58d205537412afb2d31..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/search.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/icon/writing-icon.svg b/Auto-Photoshop-StableDiffusion-Plugin/icon/writing-icon.svg
deleted file mode 100644
index ecc6291818f5655ffc2af073862251082f9650bb..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/icon/writing-icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/Auto-Photoshop-StableDiffusion-Plugin/index.html b/Auto-Photoshop-StableDiffusion-Plugin/index.html
deleted file mode 100644
index d34cb8b4a792dc21c6aac68c3d6cbdd188a8a179..0000000000000000000000000000000000000000
--- a/Auto-Photoshop-StableDiffusion-Plugin/index.html
+++ /dev/null
@@ -1,3012 +0,0 @@
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
- |
-