Skip to main content
Language

From Remote URL

PhotoEditor SDK supports loading filters from a remote URL, this can be a resource hosted by a photo hosting provider or your servers. In this example, we load a custom LUT effect from a remote server.

Downloading remote resources#

We are creating a promise for downloading the filter category thumbnail as well as the LUT filter into the temporary directory.

Adding custom filter categories#

Using the downloaded resources, we are creating a custom filter category containing a custom filter and load it into the configuration.

Handling user interaction#

For this example, we are disabling user interaction while the download task is executing. In production, you might want to indicate download progress here. When the download has finished, we can reenable user interaction and dismiss the progress indicator.