Pintura Retouch example project

This project uses the Retouch plugin to add inpainting functionality to Pintura.

Demo

Open in StackBlitz

Installation

If it's not already installed we need to install Node.js

Then we install the project dependencies by running npm install in a terminal window. This will install @pqina/pintura, and the needed modules to run a local server and API.

Create a .env file in the root of the project and copy paste the values below. You'll need to create a Replicate and/or Clipdrop account to generate the needed tokens.

# Server location
HOST=localhost
PORT=3000

# Replicate access token
REPLICATE_API_TOKEN=abcd1234

# Replicate token for stable-diffusion-inpainting model
REPLICATE_INPAINT_MODEL=abcd1234

# Clipdrop access token
CLIPDROP_API_TOKEN=abcd1234

Run npm start to start a local test server at http://localhost:8080

Questions

Feel free to reach out using the contact form on the Pintura product page.

Other example projects

JavaScript:

Frameworks:

File upload libraries:

License

This projects uses a test version of Pintura. This version of Pintura will show a watermark in the editor and on generated images.

Purchase a license at https://pqina.nl/pintura to use Pintura in production.