Cropping

Crop & Media Crop

Format:

    crop: (aspect ratio)
    media_crop:
      (media_preset): (aspect ratio)
      (media_preset): (aspect ratio)
      (...)

Example:

    crop: '16:9'
    media_crop:
      tablet: '3:2'
      mobile: '1:1'

Crop aspect ratio, given either generally or for specific media presets. The hierarchy is: tag argument > media_crop: > crop:.

This setting accepts the same arguments as the crop tag parameter.

Keep & Media Keep

    keep: (measure)
    media_keep:
      (media_preset): (measure)
      (media_preset): (measure)
      (...)

Example:

    keep: attention
    media_gravity:
      tablet: entropy
      mobile: center

Which part of the image to keep when cropping, given either generally or for specific media presets. The hierarchy is: tag argument > media_keep: > keep: > attention (default).

This setting accepts the same arguments as the keep tag parameter:

  • center or centre
  • attention
  • entropy