Full list of parameters
Explore the comprehensive list of all parameters available for configuring the Picsart Photo and Video Editor SDK.
Some parameters and their names might have changed. This document describes the list as of v1.13.0. For lower versions, and the upgrade guide, you can reach out to our tech support.
Editor Setup
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
categories | Array of Strings | Enables the sidebar options by category. Available categories are
| 1.0.4 // | ||
selectedTool | String | Editor will open and select the provided tool. Available tools for use are: | empty | 1.0.4 | |
customSize | String | By passing width and height values in pixels, the editor will open with a canvas of the passed size. Example: 2550x3300. Note: This parameter is used when none of`` imageURL, replayURL, defaultTemplateId or videoURL is used/set.` | empty | 1.0.4 | |
defaultTemplateId | String | The | empty | 1.0.4 | |
features | Array of Strings | Enables features. Supported features are
| 1.0.4 The feature 'animation' is added since v1.3.3. | ||
hideCancelBtn | Boolean | This option allows to hide the Cancel button | false | 1.0.4 | |
miniapps | Object | Miniapps parameter allows the Editor SDK to include individual functionalities, currently there is only 1 functionality available, and it can be turned on by the setting,
t2i:true | false | 1.7 (coming soon) | |
settingsWidgetOptions | Array | determines which sections will be available in the settings:
| "shortcut" | 1.0.4 | |
watermark | Object | Enable water mark to be included in the export result (photo only). | 1.0.4 | ||
zoomControls | Boolean | Use By default it is enabled. | true | 1.0.4 | |
theme | String | Change the mode of the SDK between ‘dark’ and ‘light’ themes. Dark theme uses mostly black or dark grey colors for most of the UI elements, while Light theme uses mostly whites. | ‘dark’ is the default value | 1.0.4 | |
tools | Array | Enable or disable the tools available on the canvas, removing a tool from the list will remove it from the Editor. | all are enabled by default | 1.0.4 | |
undoRedoControls | Boolean | Use By default it is enabled. | true | 1.0.4 | |
textSettings | Object |
| empty | 1.0.4 | |
title | String | Editor will show this title for the edit. | empty | 1.0.4 |
Input
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
imageUrl | String/URL | When this parameter is used, the editor will open the photo editing state and load the image from the provided URL. The value must be a valid URL of a JPG, PNG or WEBP format photo. Shall not be used together with replayURL (either of these two shall be specified). | empty | 1.0.4 | |
replayUrl | String/URL | Editor will open the template editing state and load the template from the provided URL. This allows the end user to edit a design previously saved. The value must be a valid URL of a replay file. Shall not be used together with imageURL (either of these two shall be specified). | empty | 1.0.4 | |
videoUrl | String/URL | Editor will open the video editing state and load the video from the provided URL. The value must be a valid URL of a mp4 format video. Shall not be used together with replayURL (either of these two shall be specified). | empty | 1.0.4 |
Export
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
exportDPI | Number | The DPI requirement for the export. If this value is not provided there will be no DPI check. | empty | 1.0.4 | |
exportFormats | Array of Strings | The list of MIME types that need to be exported from the editor. It is possible to specify this value at initialization, when the editor is opened, or when initiating the export. Supported values are: Only one | 1.0.4 | ||
exportSettings | Object | Define custom settings for each format specified in exportFormats. All these parameters are used and have effect after the export action has been requested. The expected object structure is:\
| 1.0.4
| ||
exportType | String | Specifies the export type when Image format is included in exportFormats. Supported values are:
| 'blob' | 1.0.4 |
Inventory
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
usePicsartInventory | Boolean | Use Use By default it is disabled. | false | 1.0.4 |
Branding
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
branding | Object | To achieve a consistent, unique, and native look for your editor, the UI branding configuration provides various settings to customize the UI’s visual aspects. For more details, see here to learn about how to customize the look & feel. | empty | coming soon |
Print
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
templatesFilters | Object | The object should include the filter parameters, selected based on taxonomy api options. The three available filters are
| false | 1.0.4 | |
templatesLoadingSettings | Object |
| false | 1.4 | |
advancedText | Boolean | Auto-Scrolling Text for Video Ads allows to add a rich-text overlay on top of the scene. The user can control when it shows up, when it starts scrolling and for how long, define the font as well as write the rich-text copy that should scroll. This feature is disabled by default and is available in the Configurable plan. | false | ✅ | 🚫 |
fitExportPDFSizeResult | Boolean | When set to "true" this setting will round the trimbox output size to try to match the same size of the physical dimensions of the template. Since the templates are created in pixels and the conversion to a physical size can not be always perfect there is a 2 decimal points error margin that could still be obtained as result, thi`s method is fixing larger margin errors. Only available for millimeter. | false | 1.0.4 | |
fitBackgroundToBleedArea | Boolean | When true this will fill the bleed area (not visible by default) to make sure the background content is included and avoid problems when trimming the print. | false | 1.4 | |
measurement | String | This parameter is used to calculate pixels to physical units, eg: inches or millimetres, the default value is "pixel" and the values supported are "inch", "millimeter" and of course "pixel". | "pixel" | 1.0.4 | |
PPI | number | For printing purposes this value is used to calculate amount of pixels per inches. | 96 | 1.0.4 | |
quality | Number | The compression quality to use when creating the output image with a lossy file format for this edit session in particular. When specified, this will override the value specified when the SDK is initialised. The supported values are in the range 0-100. | 90 | 1.0.4 |
Video & Audio
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
advancedText | Boolean | Auto-Scrolling Text for Video Ads allows to add a rich-text overlay on top of the scene. The user can control when it shows up, when it starts scrolling and for how long, define the font as well as write the rich-text copy that should scroll. This feature is disabled by default and is available in the Configurable plan. | false | ✅ | 🚫 |
subtitleURL | String/URL | The Editor will load a subtitle file and add it to the menu. | empty | 1.8 |
Other
Name | Type | Description | Default | Code | Settings |
|---|---|---|---|---|---|
onClose | Function | This callback will be fired when the editor gets closed either programmatically using the #close method or manually by the User using the Cancel button in the editor. | () => {} | 1.0.4 | |
onExport | Function | This callback will be fired when the user wants to export the edit result. | () => {} | 1.0.4 | |
onError | Function | This callback will be fired when an error happens during the open or export process. In the case of having an error during the export of a video a message and an error code will be added to the data object.
| (data) => {} | 1.0.4 |
Updated 19 days ago