Edit in GitHubLog an issue

module

This interface has all the APIs used to embed our editing modules in your own application.

createImageFromText

Copied to your clipboard
createImageFromText: (appConfig?: TextToImageAppConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void

All the properties in this object are optional.

PropertyTypeDescription
appConfig
Pass a text prompt to preload in the text to image editor
exportConfig
Configure export options. If no export options are specified, the editor falls back to the default layout options.
containerConfig
Properties to configure the SDK container

TextToImageAppConfig

TextToImageAppConfig allows you to pass a prompt into the editor, and configure callback functions.

PropertyTypeDescription
promptText
string
Optional string to launch the text to image module with a prompt
callbacks
Callback functions

editImage

Copied to your clipboard
editImage: (docConfig: EditImageDocConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void

The only required property is docConfig.

PropertyTypeDescription
docConfig
Pass an asset to preload into the Edit Image module
exportConfig
Configure export options. If no export options are specified, the editor falls back to the default layout options.
containerConfig
Properties to configure the SDK container

EditImageDocConfig

PropertyTypeDescription
asset
Asset object that contains the base64-encoded image data you want the editor to open.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.