Vorlage-Jsoncut-Wasserzeichen

Fortgeschritten

Dies ist ein Content Creation, Multimodal AI-Bereich Automatisierungsworkflow mit 14 Nodes. Hauptsächlich werden If, Wait, Merge, Aggregate, FormTrigger und andere Nodes verwendet. Erstellen Sie professionelle Bildwasserzeichen mit JSONCut API

Voraussetzungen
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "id": "0LwqeMMNkwmniCvR",
  "meta": {
    "instanceId": "9d644af8fe730dfb972042f018ed45ff1dc2e7905a9737d59584dbe5b8c7f571"
  },
  "name": "Template-Jsoncut-watermark",
  "tags": [],
  "nodes": [
    {
      "id": "0de163b2-1be3-4ef2-879d-4ce701de702b",
      "name": "Formular-Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -304,
        80
      ],
      "webhookId": "b355dccf-d9fa-46e0-9c3c-8d3c743aa037",
      "parameters": {
        "path": "b355dccf-d9fa-46e0-9c3c-8d3c743aa037",
        "options": {},
        "formTitle": "Image Watermark Generator",
        "formFields": {
          "values": [
            {
              "fieldType": "file",
              "fieldLabel": "Main Image",
              "requiredField": true
            },
            {
              "fieldType": "file",
              "fieldLabel": "Watermark Image",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Upload your main image and watermark to create a watermarked image"
      },
      "typeVersion": 2
    },
    {
      "id": "fca14091-7089-48b5-bc5f-3c5261f093c9",
      "name": "Hauptbild hochladen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        -32
      ],
      "parameters": {
        "url": "https://api.jsoncut.com/api/v1/files/upload",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "Main_Image"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "SX6i9sHw3AcKihne",
          "name": "JsonCut API Key"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "a3e639ed-f4e2-437e-b4b0-72ae227a1a1a",
      "name": "Wasserzeichen hochladen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        176
      ],
      "parameters": {
        "url": "https://api.jsoncut.com/api/v1/files/upload",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "Watermark_Image"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "SX6i9sHw3AcKihne",
          "name": "JsonCut API Key"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "e397f050-48ba-4573-9ac2-54a07239d6ff",
      "name": "Uploads zusammenführen",
      "type": "n8n-nodes-base.merge",
      "position": [
        144,
        80
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
      "name": "Warten",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        80
      ],
      "webhookId": "af7c133c-b0a0-4785-860e-922f31e1b204",
      "parameters": {
        "unit": "seconds",
        "amount": 3
      },
      "typeVersion": 1
    },
    {
      "id": "c7e3fb3a-c2c3-4ead-8586-51686f114023",
      "name": "Bei Erfolg",
      "type": "n8n-nodes-base.if",
      "position": [
        1184,
        80
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.data.status }}",
              "value2": "COMPLETED"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "0c3f84ed-cbed-4d86-a019-85f0542e5cc5",
      "name": "Bei Fehler",
      "type": "n8n-nodes-base.if",
      "position": [
        1328,
        336
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.data.status }}",
              "value2": "FAILED"
            },
            {
              "value1": "={{ $json.data.status }}",
              "value2": "CANCELLED"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "dcd47447-ba95-4ee7-a695-a95033ab251d",
      "name": "Bild herunterladen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1504,
        64
      ],
      "parameters": {
        "url": "=https://api.jsoncut.com/api/v1/files/{{ $json.data.outputFileId }}/download",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        },
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/octet-stream"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "SX6i9sHw3AcKihne",
          "name": "JsonCut API Key"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "387771b8-e659-4f2d-86ce-4c7dbab16cb7",
      "name": "Fehlerstopp",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        1536,
        336
      ],
      "parameters": {
        "errorMessage": "Failed to generate image"
      },
      "typeVersion": 1
    },
    {
      "id": "c698754d-f788-4d06-b09e-c86f531f8986",
      "name": "Aggregieren",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        288,
        80
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "data.storageUrl"
            },
            {}
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bb3fed4e-dc72-4af3-97b5-0d5e491da0bd",
      "name": "Haftnotiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -80
      ],
      "parameters": {
        "width": 272,
        "height": 432,
        "content": "### Upload Files to JsonCut API"
      },
      "typeVersion": 1
    },
    {
      "id": "43b6603f-eaa1-47d0-90eb-22985a41e92f",
      "name": "Haftnotiz1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        0
      ],
      "parameters": {
        "color": 4,
        "width": 1248,
        "height": 320,
        "content": "### Create Job with Jsoncut API and wait for the result"
      },
      "typeVersion": 1
    },
    {
      "id": "c7dec839-3324-4c26-afe3-c0cce706359f",
      "name": "JsonCut-Auftrag erstellen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        80
      ],
      "parameters": {
        "url": "https://api.jsoncut.com/api/v1/jobs",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n   \"type\":\"image\",\n   \"config\":{\n      \"width\":800,\n      \"height\":600,\n      \"layers\":[\n         {\n            \"type\":\"image\",\n            \"path\":\"{{ $json.storageUrl[0] }}\",\n            \"x\":0,\n            \"y\":0,\n            \"width\":800,\n            \"height\":600,\n            \"fit\":\"cover\"\n         },\n         {\n            \"type\":\"image\",\n            \"path\":\"{{ $json.storageUrl[1] }}\",\n            \"width\":90,\n            \"height\":90,\n            \"position\":{\n               \"x\":0.95,\n               \"y\":1,\n               \"originX\":\"right\",\n               \"originY\":\"bottom\"\n            },\n            \"fit\":\"contain\",\n            \"opacity\":0.5\n         }\n      ]\n   }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "SX6i9sHw3AcKihne",
          "name": "JsonCut API Key"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "10029720-1b82-4b47-9caf-4f8d15d20e71",
      "name": "JsonCut-Auftragsstatus prüfen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        992,
        80
      ],
      "parameters": {
        "url": "=https://api.jsoncut.com/api/v1/jobs/{{ $json.data.jobId }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "SX6i9sHw3AcKihne",
          "name": "JsonCut API Key"
        }
      },
      "typeVersion": 4.1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5d01db84-ed88-4692-8fdd-956e1badccac",
  "connections": {
    "7452ecb9-0de4-439c-adc6-3fb93eb33ae6": {
      "main": [
        [
          {
            "node": "10029720-1b82-4b47-9caf-4f8d15d20e71",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0c3f84ed-cbed-4d86-a019-85f0542e5cc5": {
      "main": [
        [
          {
            "node": "387771b8-e659-4f2d-86ce-4c7dbab16cb7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c698754d-f788-4d06-b09e-c86f531f8986": {
      "main": [
        [
          {
            "node": "c7dec839-3324-4c26-afe3-c0cce706359f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c7e3fb3a-c2c3-4ead-8586-51686f114023": {
      "main": [
        [
          {
            "node": "dcd47447-ba95-4ee7-a695-a95033ab251d",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "0c3f84ed-cbed-4d86-a019-85f0542e5cc5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0de163b2-1be3-4ef2-879d-4ce701de702b": {
      "main": [
        [
          {
            "node": "fca14091-7089-48b5-bc5f-3c5261f093c9",
            "type": "main",
            "index": 0
          },
          {
            "node": "a3e639ed-f4e2-437e-b4b0-72ae227a1a1a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e397f050-48ba-4573-9ac2-54a07239d6ff": {
      "main": [
        [
          {
            "node": "c698754d-f788-4d06-b09e-c86f531f8986",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "dcd47447-ba95-4ee7-a695-a95033ab251d": {
      "main": [
        []
      ]
    },
    "a3e639ed-f4e2-437e-b4b0-72ae227a1a1a": {
      "main": [
        [
          {
            "node": "e397f050-48ba-4573-9ac2-54a07239d6ff",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "fca14091-7089-48b5-bc5f-3c5261f093c9": {
      "main": [
        [
          {
            "node": "e397f050-48ba-4573-9ac2-54a07239d6ff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c7dec839-3324-4c26-afe3-c0cce706359f": {
      "main": [
        [
          {
            "node": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "10029720-1b82-4b47-9caf-4f8d15d20e71": {
      "main": [
        [
          {
            "node": "c7e3fb3a-c2c3-4ead-8586-51686f114023",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Content-Erstellung, Multimodales KI

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes14
Kategorie2
Node-Typen8
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34