Media Type Images Crops - NCIOCPL/cgov-digital-platform GitHub Wiki
The following are all of the crops that are available to be configured within the system. Not every image type needs to use these crops, but they should be reused whenever the same aspect ratio/sizes are needed. The soft limits are based on the the largest width of an the image styles that use the crop.
For display sizes see the Media Type Image page.
- Name: Freeform
- Machine Name: freeform
- Description: This is a freeform crop to be used by lead or contextual images.
- Aspect Ratio: N/A
-
Soft Limits
- Width: 970
- Name: Thumbnail
- Machine Name: thumbnail
- Description: A crop used for lists.
- Aspect Ratio: 4:3
-
Soft Limits
- Width: 228
- Name: 4x3
- Machine Name: 4x3
- Description: This is the crop that is used for feature cards, social media, and lists.
- Aspect Ratio: 4:3
-
Soft Limits
- Width: 425
- Name: 3x4
- Machine Name: 3x4
- Description: For future use.
- Aspect Ratio: 3:4
-
Soft Limits
- Since this is for the future we have not set a limit as we don't know how it will be used.
- Name: 1x1
- Machine Name: 1x1
- Description: For future use.
- Aspect Ratio: 1x1
-
Soft Limits
- Since this is for the future we have not set a limit as we don't know how it will be used.
- Name: 16x9
- Machine Name: 16x9
- Description: This is used on CTHP and Multimedia cards.
- Aspect Ratio: 16x9
-
Soft Limits
- Width: 785
- Name: 9x16
- Machine Name: 9x16
- Description: For future use.
- Aspect Ratio: 9x16
-
Soft Limits
- Since this is for the future we have not set a limit as we don't know how it will be used.
Notes:
- Freeform - (not required) crop for article style if the editor does not want to crop the source image outside of the CMS
- Thumbnail (required) - 4x3 aspect ratio, but needs a tighter crop
- 4x3 (required) - maps to Featured and Social Media
- 3x4 (required)
- 1x1 (required)
- 16x9 (not required) - Maps to Pano
- 9x16 (not required)