WorkflowOtherOpen

FLUX Fill image inpainting editor in n8n

This n8n workflow serves a small web image editor and uses FLUX Fill to repaint the parts of a picture you mask. It is for designers and developers who want an inpainting tool they can host from n8n and adapt to their own image source.

What it does

A webhook returns an HTML editor built with Konva.js and an image comparison slider. When you submit, the flow sends the original image, the alpha mask and your prompt to the FLUX Fill API, checks its status every three seconds until ready, and shows the edited image next to the original.

How to use it

Load an image from your PC or pick a default one, or change the image array node to pull URLs from your own data source.

Requirements and limits

Needs an API account for the FLUX Fill service; saving edits requires extra steps you add.

More in Other and the n8n workflow library.

Full text

Front matter
name: FLUX-fill standalone
description: Triggered by a webhook. Connects Condition, HTTP request, Html, Respond To Webhook, Wait, Webhook. # Deliver the editor with links to the images # Image processing part # Send back edited image ## Add extra steps to save an edited image ## Image array * Load from PC * Select one of the default images ### Change this node to ### get image URLs from your data source ## HTML code of the editor * Konva.js * img-comparison-slider to compare edits vs original file * Additional css + js files for the editor logic ## Call FLUX-Fill Tool Pass the following data: * original image * alpha mask from the
category: Automation
kind: Workflow
software: Condition|HTTP request|Html|Respond To Webhook|Wait|Webhook

FLUX-fill standalone

Triggered by a webhook. Connects Condition, HTTP request, Html, Respond To Webhook, Wait, Webhook. # Deliver the editor with links to the images # Image processing part # Send back edited image

Add extra steps to save an edited image ## Image array

  • Load from PC
  • Select one of the default images

Change this node to

get image URLs from your data source ## HTML code of the editor

  • Konva.js
  • img-comparison-slider to compare edits vs original file
  • Additional css + js files for the editor logic ## Call FLUX-Fill Tool

Pass the following data:

  • original image
  • alpha mask from the

Steps

  • Merge (merge)
  • Respond to Webhook (respondToWebhook)
  • Wait 3 sec (wait)
  • Is Ready? (if)
  • Sticky Note (stickyNote)
  • FLUX Fill (httpRequest)
  • Check FLUX status (httpRequest)
  • Get Fill Image (httpRequest)
  • Show the image to user (respondToWebhook)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Mockups (set)
  • Webhook (webhook)
  • Editor page (html)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • NO OP (noOp)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Wait/1589_Wait_Webhook_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.