You are here

function retina_images_image_default_styles in Retina Images 7

Implements hook_image_default_styles().

File

./retina_images.module, line 253
This module provides an image effect to assist in outputing high resolution images.

Code

function retina_images_image_default_styles() {
  $styles = array();
  $styles['thumbnail_retina'] = array(
    'label' => 'Thumbnail (100x100 retinafied)',
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 100,
          'height' => 100,
          'upscale' => 1,
          'retinafy' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );
  $styles['medium_retina'] = array(
    'label' => 'Medium (220x220 retinafied)',
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 220,
          'height' => 220,
          'upscale' => 1,
          'retinafy' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );
  $styles['large_retina'] = array(
    'label' => 'Large (480x480 retinafied)',
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 480,
          'height' => 480,
          'upscale' => 0,
          'retinafy' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );
  return $styles;
}