Result of an image operation. This interface represents the result of any image processing operation, such as resizing or format conversion.

ImageOperationResult

interface ImageOperationResult {
    error?: Error;
    path: string;
    size?: string | number;
    success: boolean;
}

Hierarchy (View Summary)

Properties

error?: Error

Error object if the operation failed

path: string

The file path where the image was saved

size?: string | number

The size of the generated image (can be a single number for square images or a string like "310x150" for non-square)

success: boolean

Whether the operation was successful