This project uses the Retouch plugin to add inpainting functionality to Pintura.
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
Feel free to reach out using the contact form on the Pintura product page.
JavaScript:
Frameworks:
- jQuery
- Angular
- Vue 2
- Vue 3
- Nuxt 2
- Nuxt 3
- Svelte
- SvelteKit
- React
- React TypeScript
- NextJS
- React Native
- React Native TypeScript
- Cordova
- Capacitor
- Ionic 6
File upload libraries:
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.