You are here

function media_gallery_image_default_styles in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 media_gallery.module \media_gallery_image_default_styles()

Implements hook_image_default_styles().

1 call to media_gallery_image_default_styles()
media_gallery_styles_default_presets_alter in ./media_gallery.module
Implements hook_styles_default_presets_alter().

File

./media_gallery.module, line 1540

Code

function media_gallery_image_default_styles() {
  $styles = array();
  $styles['media_gallery_thumbnail'] = array(
    'effects' => array(
      array(
        // @todo We want to not upscale if the user uploads a smaller image, but
        //   image_scale_and_crop doesn't support that option. Try to get
        //   http://drupal.org/node/872206 into core, or solve it in contrib.
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 450,
          'height' => 450,
          'upscale' => FALSE,
        ),
        'weight' => 0,
      ),
    ),
  );
  $styles['media_gallery_large'] = array(
    'effects' => array(
      array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 900,
          'height' => 900,
          'upscale' => FALSE,
        ),
        'weight' => 0,
      ),
    ),
  );
  return $styles;
}