Validation rules for photo pixel dimensions including aspect ratios, orientations, and size requirements by photo type
Aspect Ratio
Large_AspectRatioMustBeWithinRangeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension | Link |
XLarge_AspectRatioMustBeWithinRangeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension | Link |
XXLarge_AspectRatioMustBeWithinRangeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that longest dimension is between >= 1.5380 and =< 1.5402 the length of the shortest dimension | Link |
XXLarge_AspectRatioMustBeWithinRangeForGalleryIntent
| Preconditions |
|---|
intent is GALLERY |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that longest dimension is not greater than 2.2x the length of the shortest dimension | Link |
Dimensions
PhotosThumbnailMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosSmallMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosMediumMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosLargeMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosXLargeMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosXXLargeMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
PhotosOriginalMustHaveValidDimensions
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that dimensions are within a permitted range | Link |
Orientation
Large_OrientationMustBeLandscapeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth value is greater than pixelHeight value | Link |
XLarge_OrientationMustBeLandscapeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth value is greater than pixelHeight value | Link |
XXLarge_OrientationMustBeLandscapeForCoverPhotoIntent
| Preconditions |
|---|
intent is COVER_PHOTO |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth value is greater than pixelHeight value | Link |
Pixel Height
PhotosThumbnailPixelHeightMustBePresent
| Preconditions |
|---|
thumbnail is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosSmallPixelHeightMustBePresent
| Preconditions |
|---|
small is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosMediumPixelHeightMustBePresent
| Preconditions |
|---|
medium is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosLargePixelHeightMustBePresent
| Preconditions |
|---|
large is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosXLargePixelHeightMustBePresent
| Preconditions |
|---|
xlarge is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosXXLargePixelHeightMustBePresent
| Preconditions |
|---|
xxlarge is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
PhotosOriginalPixelHeightMustBePresent
| Preconditions |
|---|
original is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelHeight is present | Link |
Pixel Width
PhotosThumbnailPixelWidthMustBePresent
| Preconditions |
|---|
thumbnail is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosSmallPixelWidthMustBePresent
| Preconditions |
|---|
small is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosMediumPixelWidthMustBePresent
| Preconditions |
|---|
medium is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosLargePixelWidthMustBePresent
| Preconditions |
|---|
large is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosXLargePixelWidthMustBePresent
| Preconditions |
|---|
xlarge is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosXXLargePixelWidthMustBePresent
| Preconditions |
|---|
xxlarge is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |
PhotosOriginalPixelWidthMustBePresent
| Preconditions |
|---|
original is present |
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that pixelWidth is present | Link |