From f647e425eb08f4d0d9d899d79dedf9f6d93f55ff Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 1 Nov 2022 21:47:36 +0100 Subject: [PATCH] fix: PNG alpha channel -Prevent conversion to png files to retain alpha channel --- shortcut.json | 59 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/shortcut.json b/shortcut.json index 2a14963..c911774 100644 --- a/shortcut.json +++ b/shortcut.json @@ -18,7 +18,7 @@ { "WFWorkflowActionIdentifier": "is.workflow.actions.comment", "WFWorkflowActionParameters": { - "WFCommentActionText": "For info on headers and how to use them, look here: https://github.com/tycrek/ass#header-overrides\n\nCredit to tycrek & contributors for the image server, this shortcut would not exist without them.\n\nv1.0.0 by https://github.com/LeviSnoot" + "WFCommentActionText": "For info on headers and how to use them, look here: https://github.com/tycrek/ass#header-overrides\n\nCredit to tycrek & contributors for the image server, this shortcut would not exist without them.\n\nv1.0.1 by https://github.com/LeviSnoot" } }, { @@ -73,7 +73,8 @@ "Type": "ExtensionInput" }, "WFSerializationType": "WFTextTokenAttachment" - } + }, + "UUID": "0F3B2520-7F1A-4749-A646-B8A7BC262520" } }, { @@ -83,6 +84,45 @@ "WFControlFlowMode": 1 } }, + { + "WFWorkflowActionIdentifier": "is.workflow.actions.conditional", + "WFWorkflowActionParameters": { + "WFInput": { + "Type": "Variable", + "Variable": { + "Value": { + "OutputUUID": "C12B7BC7-4B5C-4403-B7CC-21C5CFD79694", + "Type": "ActionOutput", + "OutputName": "Name" + }, + "WFSerializationType": "WFTextTokenAttachment" + } + }, + "WFControlFlowMode": 0, + "WFConditionalActionString": "png", + "GroupingIdentifier": "FA840B3C-98F9-4AF3-AD57-C69EA5267E54", + "WFCondition": 99 + } + }, + { + "WFWorkflowActionIdentifier": "is.workflow.actions.detect.images", + "WFWorkflowActionParameters": { + "WFInput": { + "Value": { + "Type": "ExtensionInput" + }, + "WFSerializationType": "WFTextTokenAttachment" + }, + "UUID": "4C0B97FE-E9B7-4BB3-B83C-3C3F64CA6934" + } + }, + { + "WFWorkflowActionIdentifier": "is.workflow.actions.conditional", + "WFWorkflowActionParameters": { + "GroupingIdentifier": "FA840B3C-98F9-4AF3-AD57-C69EA5267E54", + "WFControlFlowMode": 1 + } + }, { "WFWorkflowActionIdentifier": "is.workflow.actions.conditional", "WFWorkflowActionParameters": { @@ -179,6 +219,13 @@ "WFControlFlowMode": 2 } }, + { + "WFWorkflowActionIdentifier": "is.workflow.actions.conditional", + "WFWorkflowActionParameters": { + "GroupingIdentifier": "FA840B3C-98F9-4AF3-AD57-C69EA5267E54", + "WFControlFlowMode": 2 + } + }, { "WFWorkflowActionIdentifier": "is.workflow.actions.conditional", "WFWorkflowActionParameters": { @@ -358,15 +405,15 @@ { "Category": "Parameter", "ParameterKey": "WFURL", - "ActionIndex": 13, - "Text": "URL for your ass instance:", + "ActionIndex": 19, + "Text": "Add the URL for your ass instance.", "DefaultValue": "https://" }, { "Category": "Parameter", "ParameterKey": "WFHTTPHeaders", - "ActionIndex": 13, - "Text": "Add your token in the \"Text\" field. You can add any other headers you'd like here. For information on headers and how to use them, check the comment in the shortcut.", + "ActionIndex": 19, + "Text": "Add your Authorization token. You can pass any other headers you'd like here. For more info, check the comment in the shortcut.", "DefaultValue": { "Value": { "WFDictionaryFieldValueItems": [