Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IResCropOptions

Hierarchy

Index

Properties

Optional autoOrient

autoOrient: boolean

Auto orientate the image.

default

true

Optional background

background: string

Apply a background color.

Optional coalesce

coalesce: boolean

Applies the "-coalesce" option.

default

false

see

https://www.imagemagick.org/script/command-line-options.php#coalesce

Optional cropHeight

cropHeight: number

Height of cropped image.

default

cropWidth

cropWidth

cropWidth: number

Width of cropped image.

Optional cropheight

cropheight: number

Height of cropped image.

deprecated

Optional cropwidth

cropwidth: number

Width of cropped image.

deprecated

Optional dst

dst: string

Destination file.

default

A temporary file

Optional flatten

flatten: boolean

Flatten the resulting image.

default

false

Optional gravity

gravity: string

Optional height

height: number

Height of resized image.

default

cropWidth

Optional ignoreAspectRatio

ignoreAspectRatio: boolean

Ignore aspect ratio when resizing.

default

false

Optional onlyDownscale

onlyDownscale: boolean

Only reduce the size of the image. Do not increase it.

default

false

Optional quality

quality: number

Set the output quality.

type

number 1-100

src

src: string

Source file.

width

width: number

Width of resized image.

Optional x

x: number

Left distance of crop

default

0

Optional y

y: number

Top distance of crop

default

0

Generated using TypeDoc