Image Editing

The Image Module SDK provides a set of intuitive and powerful image editing tools. This SDK allows developers to seamlessly integrate rich image editing features into their iOS applications.


Prerequisites

Before you begin editing images, ensure:

  • The TruVideo Core SDK is integrated into your project.

  • Authentication has been completed.

  • You have access to a valid image file path.


Edit an Image

Step 1: Initialize the Image Editor Preset

Set up a configuration using the TruvideoSdkImageEditorPreset. This defines the input and output image paths.

let configuration = TruvideoSdkImageEditorPreset(
    imageURL: inputUrl,     // Input image URL
    outputURL: outputUrl    // Output path for the edited image
)

Step 2: Present the Image Editor View

Launch the image editor using a view controller:


Final Implementation

Here’s what a complete integration might look like:


Final Result -

Learn More

Explore advanced capabilities of the Image Module in the Image Module Reference.

Last updated

Was this helpful?