type

UploadImageEdit

UploadImageEdit describes a reversible crop and focal point on the oriented source image. Coordinates are percentages of that source, not the rendition. A zero width and height clear the crop.

Properties

PropertyTypeDescription
FocalXfloat64The FocalX value.
FocalYfloat64The FocalY value.
CropXfloat64The CropX value.
CropYfloat64The CropY value.
CropWidthfloat64The CropWidth value.
CropHeightfloat64The CropHeight value.

Full signature

type UploadImageEdit struct { FocalX float64 `json:"focalX"` FocalY float64 `json:"focalY"` CropX float64 `json:"cropX"` CropY float64 `json:"cropY"` CropWidth float64 `json:"cropWidth"` CropHeight float64 `json:"cropHeight"` }

Source protocol/uploads.go:6