type

UploadImageEdit

A reversible crop and focal point on the oriented source image.

Properties

PropertyTypeDescription
FocalXfloat64Horizontal focal coordinate from 0 through 100.
FocalYfloat64Vertical focal coordinate from 0 through 100.
CropXfloat64Crop rectangle horizontal origin as a source-image percentage.
CropYfloat64Crop rectangle vertical origin as a source-image percentage.
CropWidthfloat64Crop width; zero with CropHeight clears the crop.
CropHeightfloat64Crop height; a positive rectangle must remain within the source.

How it works

Coordinates are percentages of the oriented source image, not a generated rendition.

Full signature

type UploadImageEdit = protocol.UploadImageEdit

Source core/uploads.go:26