Mews · Schema

Image size parameters

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
ImageId string Unique identifier of the image.
Width integer Desired width of the image.
Height integer Desired height of the image.
ResizeMode object Mode how the image should be resized to the desired width and height. Cover (Resize to fit within the specified size, so the result might be smaller than requested.) CoverExact (Resize and pad to exac
View JSON Schema on GitHub

JSON Schema

mews-imagesizeparameters-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ImageSizeParameters",
  "title": "Image size parameters",
  "required": [
    "ImageId"
  ],
  "type": "object",
  "properties": {
    "ImageId": {
      "type": "string",
      "description": "Unique identifier of the image.",
      "format": "uuid"
    },
    "Width": {
      "type": "integer",
      "description": "Desired width of the image.",
      "format": "int32",
      "nullable": true
    },
    "Height": {
      "type": "integer",
      "description": "Desired height of the image.",
      "format": "int32",
      "nullable": true
    },
    "ResizeMode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ImageResizeModeEnum"
        }
      ],
      "description": "Mode how the image should be resized to the desired width and height.\n\nCover (Resize to fit within the specified size, so the result might be smaller than requested.)\n\nCoverExact (Resize and pad to exactly fit within the specified size.)\n\nFit (Resize to fit within the specified size, so the result might be smaller than requested.)\n\nFitExact (Resize and pad to exactly fit within the specified size.)",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "ImageSizeParameters"
}