{
  "id": "W1l2SWphm4So7kFn",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Watermark Images from Google Drive Folder A to Folder B",
  "tags": [],
  "nodes": [
    {
      "id": "348c6ef3-380c-41c4-87f9-69b2b1e663ed",
      "name": "Sticky Note: Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        656
      ],
      "parameters": {
        "color": 7,
        "height": 340,
        "content": "### \u2460 Trigger\nRun manually or connect to a schedule."
      },
      "typeVersion": 1
    },
    {
      "id": "0d10f5b5-699f-4a76-9f2b-8008e5cd6244",
      "name": "Sticky Note: Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        656
      ],
      "parameters": {
        "color": 7,
        "width": 480,
        "height": 340,
        "content": "### \u2461 List & Filter\nList all files in Folder A, then keep only images."
      },
      "typeVersion": 1
    },
    {
      "id": "ca07ca04-e2bf-4e95-8a1d-a3880420a1c2",
      "name": "Sticky Note: Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        656
      ],
      "parameters": {
        "color": 7,
        "width": 420,
        "height": 340,
        "content": "### \u2462 Loop & Download\nProcess one image at a time \u2014 downloads each file from Drive."
      },
      "typeVersion": 1
    },
    {
      "id": "43b036fa-7af0-4357-bc38-fff55a02fc26",
      "name": "Sticky Note: Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1856,
        640
      ],
      "parameters": {
        "color": 7,
        "height": 360,
        "content": "### \u2463 Watermark\nEdit Image node applies text watermark. Configure text, size, colour, opacity and position directly in this node."
      },
      "typeVersion": 1
    },
    {
      "id": "d95c5832-89e9-4f34-bdcf-e8eca8f8637c",
      "name": "Sticky Note: Step 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2112,
        640
      ],
      "parameters": {
        "color": 7,
        "height": 356,
        "content": "### \u2464 Upload & Loop\nUploads watermarked image to Folder B, then loops back for the next image."
      },
      "typeVersion": 1
    },
    {
      "id": "945d4225-a075-4e5a-9834-c1400add12a0",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        720,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1dfe53ec-81b9-43c9-aac1-ffc429af2673",
      "name": "Google Drive: List Files in Folder A",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        976,
        800
      ],
      "parameters": {
        "filter": {
          "folderId": {
            "__rl": true,
            "mode": "id",
            "value": "1Zk2I9rGrYxPJw6mgCvkCLu_dexppuUGs"
          }
        },
        "options": {},
        "resource": "fileFolder"
      },
      "typeVersion": 3
    },
    {
      "id": "98f536f0-c372-4aab-bdeb-bca28b16b194",
      "name": "Filter: Images Only",
      "type": "n8n-nodes-base.filter",
      "position": [
        1216,
        800
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "img-filter",
              "operator": {
                "type": "string",
                "operation": "regex"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "\\.(jpe?g|png|webp|gif|bmp|tiff?)$"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "380f1b0e-28c7-46fc-beb7-3bf595ae9b85",
      "name": "Loop: One Image at a Time",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1456,
        800
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "68a2f2e9-b7ea-43d6-8e40-3860c9c4178d",
      "name": "Google Drive: Download Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1696,
        800
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "e6c9358e-1245-4029-b1db-232e4e5ec54a",
      "name": "Edit Image: Apply Watermark",
      "type": "n8n-nodes-base.editImage",
      "position": [
        1936,
        800
      ],
      "parameters": {
        "options": {},
        "operation": "multiStep",
        "operations": {
          "operations": [
            {
              "font": "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
              "text": "This is a test water mark run for n8n @oxoup",
              "fontSize": 30,
              "fontColor": "#FEF9F9",
              "operation": "text",
              "positionX": 200,
              "positionY": 500,
              "lineLength": 60
            },
            {
              "operation": "border"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "aebbc339-e875-49bb-aaaf-91232d0b0c41",
      "name": "Google Drive: Upload to Folder B",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2176,
        800
      ],
      "parameters": {
        "name": "={{ $json.name.replace(/\\.[^.]+$/, '') + '_watermarked.jpg' }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "18RCkwlRkv7L4Oc6B5G-y175QnsRwn3Ub"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "69c21edd-a585-43c2-bdc5-30960c4e00c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        560
      ],
      "parameters": {
        "color": "#B1AC2B",
        "width": 464,
        "height": 832,
        "content": "## Google Drive Image Watermarker\n\nBatch watermark every image in a Google Drive folder and save the results to a separate destination folder \u2014 fully automated, no code required, and no external tools or APIs needed.\n\nWho is this for\n\nThis workflow is ideal for photographers, designers, content creators, and agencies who need to protect or brand their images before sharing or publishing.\n\nHow it works\n\n1. The workflow is triggered manually. It lists all files inside your source folder (Folder A) using the Google Drive node.\n2. A Filter node checks each file's name against common image extensions (jpg, jpeg, png, webp, gif, bmp, tiff) and discards anything that isn't an image.\n3. A Loop node processes one image at a time to keep memory usage low and avoid timeouts on large folders.\n4. Each image is downloaded from Google Drive as a binary file.\n5. The \"Edit Image node\" stamps your custom text watermark onto the image. You can configure the watermark text, font, size, colour, opacity, and position directly inside this node.\n6. The watermarked image is uploaded to your destination folder (Folder B) with `_watermarked` appended to the filename.\n7. The loop continues until every image in Folder A has been processed.\n\nSetup\n\n1. Connect your \"Google Drive OAuth2\"\" credentials to all three Google Drive nodes.\n2. In the \"List Files\" node, replace `YOUR_FOLDER_A_ID` with your source folder ID.\n3. In the \"Upload\" node, replace `YOUR_FOLDER_B_ID` with your destination folder ID.\n4. Open the \"Edit Image\" node and set your watermark text, font size, colour, and position.\n\nCustomisation\n\nTo get your folder ID, open the folder in Google Drive and copy the last part of the URL: \"https://drive.google.com/drive/folders/YOUR_FOLDER_ID\""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "binaryMode": "separate",
    "executionOrder": "v1"
  },
  "versionId": "57c46b6a-db23-4795-b546-826016c96fce",
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Google Drive: List Files in Folder A",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: Images Only": {
      "main": [
        [
          {
            "node": "Loop: One Image at a Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop: One Image at a Time": {
      "main": [
        [],
        [
          {
            "node": "Google Drive: Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Image: Apply Watermark": {
      "main": [
        [
          {
            "node": "Google Drive: Upload to Folder B",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Download Image": {
      "main": [
        [
          {
            "node": "Edit Image: Apply Watermark",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Upload to Folder B": {
      "main": [
        [
          {
            "node": "Loop: One Image at a Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: List Files in Folder A": {
      "main": [
        [
          {
            "node": "Filter: Images Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}