yankooliveira / sd-webui-photopea-embed

A simple Stable Diffusion WebUI extension that adds a Photopea tab and integration.
Other
789 stars 63 forks source link

🦜 Photopea Stable Diffusion WebUI Extension

Demo video

Photopea is essentially Photoshop in a browser. This is a simple extension to add a Photopea tab to AUTOMATIC1111 Stable Diffusion WebUI.

In the tab, you will have an embedded Photopea editor and a few buttons to send the image to different WebUI sections, and also buttons to send generated content to the embeded Photopea.

Consider supporting Photopea by going premium!

Also consider using the much better integrated (and more actively maintained) Stable Diffusion PS Pea extension by huchenlei!

Installation

On your Stable Diffusion WebUI, click the Extensions tab, then the Install from URL internal tab in that section. Paste the URL for this repo and click Install.

Usage

In the Photopea extension tab, you will have the embedded Photopea window. It literally just embeds the exact same Photopea you'd have when accessing the website directly. You can learn how to use Photopea in their official documentation.

Options:

Buttons:

ControlNet:

In case you have the ControlNet extension installed, you'll also have:

WebUI image galleries

In the txt2txt, img2img and extras tab galleries (where your generated images appear), there will also be a Send to Photopea button. You can press it to send the currently selected image back to the Photopea tab. It will be added as a new rasterized layer to the currently open document.

You can also copy and paste the generated results normally into Photopea, and have multiple documents open etc.

Known bugs:

Changelog

2023-09-30

2023-06-17

2023-05-13

Code & Usage Licenses

I've tried to comment the code thoroughly, especially because it's mostly JS hacks. Feel free to take it apart and reuse it.

When it comes to usage of the extension, I'm adding restriction guidelines from CreativeML Open RAIL-M license.

You agree not to use the extension or derivatives of the extension: