@nextcloud/image-editor
    Preparing search index...

    Interface ExportOptions

    SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors SPDX-License-Identifier: AGPL-3.0-or-later

    interface ExportOptions {
        format?: "image/png" | "image/jpeg" | "image/webp";
        maxSize?: number;
        quality?: number;
    }
    Index
    format?: "image/png" | "image/jpeg" | "image/webp"

    Target MIME type, defaults to 'image/png'

    maxSize?: number

    Bound the longest output edge, never upscaling

    quality?: number

    Encoder quality between 0 and 1, only for lossy formats. A JPEG left to itself is written at the setting its source was written at, read back from the source's quantization table and held between 0.75 and 0.97, or at 0.92 where there is no source to read.