You are here

function galleria_image_default_styles in Galleria 7

Implements hook_image_default_styles().

Provides default image style presets that can be overridden by site administrators.

File

./galleria.module, line 136
A light-weight, customizable image gallery plugin for Drupal based on jQuery

Code

function galleria_image_default_styles() {
  $styles = array();

  // image preset for the big image
  $styles['galleria_zoom'] = array(
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 450,
          'height' => 300,
          'upscale' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );

  // image preset for thumbnails
  $styles['galleria_thumb'] = array(
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 50,
          'height' => 40,
          'upscale' => 1,
        ),
        'weight' => 0,
      ),
    ),
  );
  return $styles;
}