type

UpdateUploadImageInput

type UpdateUploadImageInput struct { // FocalX is the horizontal focal coordinate from 0 (left) to 100 (right). FocalX float64 // FocalY is the vertical focal coordinate from 0 (top) to 100 (bottom). FocalY float64 // CropX and CropY are the top-left of an optional normalized crop rectangle. CropX float64 CropY float64 // CropWidth and CropHeight are zero to clear the crop, otherwise each must // be positive and the rectangle must remain within the original image. CropWidth float64 CropHeight float64 // ExpectedRevision rejects changes based on a stale document revision. ExpectedRevision int // Actor is the authenticated document used by read and update access rules. Actor *store.Document // ActorCollection identifies the exact auth collection that owns Actor. ActorCollection schema.CollectionSlug }

Focal point and optional crop for regenerating image variants.

Source core/uploads.go:49

FocalXfloat64
Horizontal focal coordinate from 0 (left) to 100 (right).
FocalYfloat64
Vertical focal coordinate from 0 (top) to 100 (bottom).
CropXfloat64
Normalized crop rectangle left edge.
CropYfloat64
Normalized crop rectangle top edge.
CropWidthfloat64
Crop width; zero with CropHeight clears the crop.
CropHeightfloat64
Crop height; a positive rectangle must remain inside the source.
ExpectedRevisionint
Rejects changes based on a stale document revision.
Actor*store.Document
Authenticated document used by read and update access rules.
ActorCollectionschema.CollectionSlug
Identifies the exact auth collection owning Actor.