@dusrel/image API
    Preparing search index...

    Interface UseProcessImage

    interface UseProcessImage {
        abort: () => void;
        error: unknown;
        process: (
            input: ImageInput,
            options?: ImageOptions,
        ) => Promise<ImageResult | undefined>;
        processing: boolean;
        progress: number;
        reset: () => void;
        result: ImageResult | undefined;
        status: ProcessorStatus;
        step: ProgressStep | undefined;
    }

    Hierarchy (View Summary)

    Index
    abort: () => void

    Type Declaration

      • (): void
      • Aborts the in-flight run (state returns to idle).

        Returns void

    error: unknown
    process: (
        input: ImageInput,
        options?: ImageOptions,
    ) => Promise<ImageResult | undefined>

    Type Declaration

    processing: boolean
    progress: number

    Coarse 0..1 progress derived from the step (0.25 per step).

    reset: () => void

    Type Declaration

      • (): void
      • Aborts and clears result/error back to the initial state.

        Returns void

    result: ImageResult | undefined
    step: ProgressStep | undefined

    Latest pipeline step while processing ("decode" → "done").