You are here

function amp_image_default_styles in Accelerated Mobile Pages (AMP) 7

Implements hook_image_default_styles().

File

./amp.module, line 1611

Code

function amp_image_default_styles() {
  $styles = array();
  $styles['amp_metadata_content_image_min_696px_wide'] = array(
    'label' => 'AMP Metadata: Content image (696px wide)',
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 696,
          'height' => NULL,
          'upscale' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );
  $styles['amp_metadata_logo_600x60'] = array(
    'label' => 'AMP Metadata: Logo (600x60)',
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 600,
          'height' => 60,
          'upscale' => 0,
        ),
        'weight' => 0,
      ),
    ),
  );
  return $styles;
}