Overview
Image Schema
s.image()
Images. Use s.image for the schema. The content is a plain object with a path, plus the metadata (width, height, mimeType) read off the file. Also note by adding .remote you can enable remote images.
Passing an image gallery module instead of options - s.image(galleryVal) - turns the field into a picker for that gallery. The value is then only the path: the width, height and mimeType are stored once, in the gallery, and repeating them on the field is a validation error.
Options:
accept: string
The accept value is a comma-separated list of one or more image types, or unique file type specifiers, describing which file types to allow.
s.image({ accept: "image/webp" })
Methods:
.validate: method
Custom validation function
.remote: method
Enable remote images