tinyimg - v1.0.0
    Preparing search index...

    Interface FitOptions

    What Image.fit takes beyond the target extent.

    interface FitOptions {
        background?: Color;
        filter?: ResampleFilter;
        gravity?: Gravity;
    }
    Index
    background?: Color

    Fills whatever a pad leaves empty.

    Weights the fit's scale samples through. auto leaves the choice to the planner.

    gravity?: Gravity

    Which part a crop keeps, or where a pad puts the image.