uppy/packages/@uppy/image-generator
2025-12-02 10:51:15 +01:00
..
src Guard concurrent generate calls 2025-12-02 10:51:15 +01:00
LICENSE WIP 2024-09-03 10:45:46 +02:00
package.json yarn.lock 2025-11-26 11:27:20 +01:00
README.md Apply feedback 2025-12-02 10:21:04 +01:00
tsconfig.build.json Fix 2025-08-25 16:31:15 +02:00
tsconfig.json Fix 2025-08-25 16:31:15 +02:00
turbo.json WIP 2025-09-16 15:51:40 +02:00

@uppy/image-generator

Uppy logo: a smiling puppy above a pink upwards arrow

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

Read the docs | Try it

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

import Uppy from '@uppy/core'
import ImageGenerator from '@uppy/image-generator'

const uppy = new Uppy()
  .use(ImageGenerator, {
    assemblyOptions: async (prompt) => {
      const res = await fetch(`/assembly-options?prompt=${encodeURIComponent(prompt)}`)
      return res.json()
    }
  })

Installation

$ npm install @uppy/image-generator

Alternatively, you can also use this plugin in a pre-built bundle from Transloadits CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.