Template-Jsoncut-Watermark

Intermédiaire

Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 14 nœuds.Utilise principalement des nœuds comme If, Wait, Merge, Aggregate, FormTrigger. Créer des filigranes d'image professionnels en utilisant l'API JSONCut

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "0LwqeMMNkwmniCvR",
  "meta": {
    "instanceId": "9d644af8fe730dfb972042f018ed45ff1dc2e7905a9737d59584dbe5b8c7f571"
  },
  "name": "Template-Jsoncut-watermark",
  "tags": [],
  "nodes": [
    {
      "id": "0de163b2-1be3-4ef2-879d-4ce701de702b",
      "name": "Déclencheur Formulaire",
      "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": "Téléverser Image Principale",
      "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": "Téléverser Filigrane",
      "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": "Fusionner Téléversements",
      "type": "n8n-nodes-base.merge",
      "position": [
        144,
        80
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
      "name": "Attente",
      "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": "Si Succès",
      "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": "Si Erreur",
      "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": "Télécharger Image",
      "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": "Arrêt Erreur",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        1536,
        336
      ],
      "parameters": {
        "errorMessage": "Failed to generate image"
      },
      "typeVersion": 1
    },
    {
      "id": "c698754d-f788-4d06-b09e-c86f531f8986",
      "name": "Agrégation",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        288,
        80
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "data.storageUrl"
            },
            {}
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bb3fed4e-dc72-4af3-97b5-0d5e491da0bd",
      "name": "Note Adhésive",
      "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": "Note Adhésive1",
      "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": "Créer Tâche JsonCut",
      "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": "Vérifier Statut Tâche JsonCut",
      "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
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Création de contenu, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds14
Catégorie2
Types de nœuds8
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34