Unplanned
Last Updated: 07 Jan 2025 16:29 by Nico
Nico
Created on: 07 Jan 2025 16:29
Category: ImageEditor
Type: Feature Request
1
Expose Image Processing Engine as a Service

Hi Team,

There are several scenarios where a developer might want to intercept the image loading process to preform pre-processing before the ImageEditor initial loads up the data onto the canvas.

This feature is to ask that you either expose the processing as service, or an event handler/overridable method, where we can do this preprocessing.

Example

Just as a conceptual example, this Bug Report shows a current issue where the EXIF of the image data has a rotation that is not currently respected by the ImageEditor. As the developer, I could override the ImageEditor's "PrepareBitmap" method and handle the EXIF rotation ahead of time before the ImageEditor moves forward.

public override SkiaBitmap PrepareBitmap(SkiaBitmap originalBitmap)
{
    var rotatedBitmap = AutoOrient(originalBitmap, origin);
    return rotatedBitmap;
}

Thank you,

Nico

0 comments