Skip to main content

Validation rules for photo pixel dimensions including aspect ratios, orientations, and size requirements by photo type

Aspect Ratio​

Thumbnail_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

Small_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

Medium_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

Large_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

XLarge_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

XXLarge_AspectRatioMustBeWithinRangeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension
VIOLATION
POST
Link
S

XXLarge_AspectRatioMustBeWithinRangeForGalleryIntent​

Preconditions
intent is GALLERY
DefinitionSeverityAPISampleMode
Validate that longest dimension is not greater than 2.2x the length of the shortest dimension
VIOLATION
POST
Link
S

Dimensions​

PhotosThumbnailMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosSmallMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosMediumMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosLargeMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosXLargeMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosXXLargeMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

PhotosOriginalMustHaveValidDimensions​

DefinitionSeverityAPISampleMode
Validate that dimensions are within a permitted range
VIOLATION
POST_AND_PUT
Link
S

Orientation​

Thumbnail_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

Small_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

Medium_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

Large_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

XLarge_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

XXLarge_OrientationMustBeLandscapeForCoverPhotoIntent​

Preconditions
intent is COVER_PHOTO
DefinitionSeverityAPISampleMode
Validate that pixelWidth value is greater than pixelHeight value
VIOLATION
POST
Link
S

Pixel Height​

PhotosThumbnailPixelHeightMustBePresent​

Preconditions
thumbnail is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosSmallPixelHeightMustBePresent​

Preconditions
small is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosMediumPixelHeightMustBePresent​

Preconditions
medium is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosLargePixelHeightMustBePresent​

Preconditions
large is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosXLargePixelHeightMustBePresent​

Preconditions
xlarge is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosXXLargePixelHeightMustBePresent​

Preconditions
xxlarge is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

PhotosOriginalPixelHeightMustBePresent​

Preconditions
original is present
DefinitionSeverityAPISampleMode
Validate that pixelHeight is present
VIOLATION
POST_AND_PUT
Link
S

Pixel Width​

PhotosThumbnailPixelWidthMustBePresent​

Preconditions
thumbnail is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosSmallPixelWidthMustBePresent​

Preconditions
small is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosMediumPixelWidthMustBePresent​

Preconditions
medium is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosLargePixelWidthMustBePresent​

Preconditions
large is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosXLargePixelWidthMustBePresent​

Preconditions
xlarge is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosXXLargePixelWidthMustBePresent​

Preconditions
xxlarge is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S

PhotosOriginalPixelWidthMustBePresent​

Preconditions
original is present
DefinitionSeverityAPISampleMode
Validate that pixelWidth is present
VIOLATION
POST_AND_PUT
Link
S