{
  "name": "3D Listing \u2014 covers (platforms split)",
  "nodes": [
    {
      "parameters": {},
      "id": "d0000000-0000-0000-0000-000000000001",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -420,
        220
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c1",
              "name": "object_hint",
              "value": "the dark object attached to the ceiling near the sun visor",
              "type": "string"
            },
            {
              "id": "c2",
              "name": "fill",
              "value": "0.5",
              "type": "string"
            },
            {
              "id": "c3",
              "name": "heading",
              "value": "Renault Espace 5 2015-2023",
              "type": "string"
            },
            {
              "id": "c4",
              "name": "caption",
              "value": "Glasses holder, print-in-place, no supports",
              "type": "string"
            },
            {
              "id": "c5",
              "name": "vignette",
              "value": "0.35",
              "type": "string"
            },
            {
              "id": "c6",
              "name": "slug",
              "value": "glasses-holder-espace5",
              "type": "string"
            },
            {
              "id": "c7",
              "name": "platforms",
              "value": "cults3d,makerworld",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000002",
      "name": "Set config",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -240,
        220
      ]
    },
    {
      "parameters": {
        "resource": "fileFolder",
        "searchMethod": "query",
        "queryString": "'1r-mlclBjX39BcAhZdsYJkC3JcNRfjxJZ' in parents and mimeType contains 'image/' and trashed = false",
        "returnAll": true,
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000003",
      "name": "List raw photos",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        -60,
        220
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000004",
      "name": "Download photo",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        120,
        220
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "fc1",
              "leftValue": "={{ $('Set config').item.json.platforms }}",
              "rightValue": "cults3d",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ]
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000005",
      "name": "want cults3d?",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        320,
        60
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "fm1",
              "leftValue": "={{ $('Set config').item.json.platforms }}",
              "rightValue": "makerworld",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ]
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000006",
      "name": "want makerworld?",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        320,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://image-worker:8000/process-image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "data"
            },
            {
              "parameterType": "formData",
              "name": "preset",
              "value": "cults3d_cover"
            },
            {
              "parameterType": "formData",
              "name": "object",
              "value": "={{ $('Set config').item.json.object_hint }}"
            },
            {
              "parameterType": "formData",
              "name": "fill",
              "value": "={{ $('Set config').item.json.fill }}"
            },
            {
              "parameterType": "formData",
              "name": "vignette",
              "value": "={{ $('Set config').item.json.vignette }}"
            },
            {
              "parameterType": "formData",
              "name": "heading",
              "value": "={{ $('Set config').item.json.heading }}"
            },
            {
              "parameterType": "formData",
              "name": "caption",
              "value": "={{ $('Set config').item.json.caption }}"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data"
            }
          }
        }
      },
      "id": "d0000000-0000-0000-0000-000000000010",
      "name": "img cults 1x1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        520,
        60
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://image-worker:8000/process-image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "data"
            },
            {
              "parameterType": "formData",
              "name": "preset",
              "value": "makerworld_4x3"
            },
            {
              "parameterType": "formData",
              "name": "object",
              "value": "={{ $('Set config').item.json.object_hint }}"
            },
            {
              "parameterType": "formData",
              "name": "fill",
              "value": "={{ $('Set config').item.json.fill }}"
            },
            {
              "parameterType": "formData",
              "name": "vignette",
              "value": "={{ $('Set config').item.json.vignette }}"
            },
            {
              "parameterType": "formData",
              "name": "heading",
              "value": "={{ $('Set config').item.json.heading }}"
            },
            {
              "parameterType": "formData",
              "name": "caption",
              "value": "={{ $('Set config').item.json.caption }}"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data"
            }
          }
        }
      },
      "id": "d0000000-0000-0000-0000-000000000011",
      "name": "img mw 4x3",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        520,
        240
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://image-worker:8000/process-image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "data"
            },
            {
              "parameterType": "formData",
              "name": "preset",
              "value": "makerworld_3x4"
            },
            {
              "parameterType": "formData",
              "name": "object",
              "value": "={{ $('Set config').item.json.object_hint }}"
            },
            {
              "parameterType": "formData",
              "name": "fill",
              "value": "={{ $('Set config').item.json.fill }}"
            },
            {
              "parameterType": "formData",
              "name": "vignette",
              "value": "={{ $('Set config').item.json.vignette }}"
            },
            {
              "parameterType": "formData",
              "name": "heading",
              "value": "={{ $('Set config').item.json.heading }}"
            },
            {
              "parameterType": "formData",
              "name": "caption",
              "value": "={{ $('Set config').item.json.caption }}"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data"
            }
          }
        }
      },
      "id": "d0000000-0000-0000-0000-000000000012",
      "name": "img mw 3x4",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        520,
        420
      ]
    },
    {
      "parameters": {
        "name": "={{ $('Set config').item.json.slug }}-1x1-{{ $('Download photo').item.json.name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "13po-Y4vUtWQIEtAN9VE4pMkYW8GsTHSn"
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000020",
      "name": "Upload cults3d",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        740,
        60
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "name": "={{ $('Set config').item.json.slug }}-4x3-{{ $('Download photo').item.json.name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "1gUzJ8tb4taINIPNEiGZcB7h-UtfD8AX1"
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000021",
      "name": "Upload mw 4x3",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        740,
        240
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "name": "={{ $('Set config').item.json.slug }}-3x4-{{ $('Download photo').item.json.name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "1gUzJ8tb4taINIPNEiGZcB7h-UtfD8AX1"
        },
        "options": {}
      },
      "id": "d0000000-0000-0000-0000-000000000022",
      "name": "Upload mw 3x4",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        740,
        420
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Set config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set config": {
      "main": [
        [
          {
            "node": "List raw photos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List raw photos": {
      "main": [
        [
          {
            "node": "Download photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download photo": {
      "main": [
        [
          {
            "node": "want cults3d?",
            "type": "main",
            "index": 0
          },
          {
            "node": "want makerworld?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "want cults3d?": {
      "main": [
        [
          {
            "node": "img cults 1x1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "want makerworld?": {
      "main": [
        [
          {
            "node": "img mw 4x3",
            "type": "main",
            "index": 0
          },
          {
            "node": "img mw 3x4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "img cults 1x1": {
      "main": [
        [
          {
            "node": "Upload cults3d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "img mw 4x3": {
      "main": [
        [
          {
            "node": "Upload mw 4x3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "img mw 3x4": {
      "main": [
        [
          {
            "node": "Upload mw 3x4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}