Adds "Send to Photopea" button from 'Extras' gallery.

Also creates new document in case sent image is bigger than the currently open document.
This commit is contained in:
Yanko Oliveira
2023-05-13 18:59:12 +01:00
parent 5c2ad5a420
commit a2b8cb5191
2 changed files with 36 additions and 10 deletions

View File

@@ -73,3 +73,7 @@ function selectionExists() {
// exists, but bounds only has values if a selection exists.
app.echoToOE(app.activeDocument.selection.bounds != null);
}
function getActiveDocumentSize() {
app.echoToOE(app.activeDocument.width + "," + app.activeDocument.height);
}