function image_image_default_styles

Implements hook_image_default_styles().

File

modules/image/image.module, line 346

Code

function image_image_default_styles() {
    $styles = array();
    $styles['thumbnail'] = array(
        'label' => 'Thumbnail (100x100)',
        'effects' => array(
            array(
                'name' => 'image_scale',
                'data' => array(
                    'width' => 100,
                    'height' => 100,
                    'upscale' => 1,
                ),
                'weight' => 0,
            ),
        ),
    );
    $styles['medium'] = array(
        'label' => 'Medium (220x220)',
        'effects' => array(
            array(
                'name' => 'image_scale',
                'data' => array(
                    'width' => 220,
                    'height' => 220,
                    'upscale' => 1,
                ),
                'weight' => 0,
            ),
        ),
    );
    $styles['large'] = array(
        'label' => 'Large (480x480)',
        'effects' => array(
            array(
                'name' => 'image_scale',
                'data' => array(
                    'width' => 480,
                    'height' => 480,
                    'upscale' => 0,
                ),
                'weight' => 0,
            ),
        ),
    );
    return $styles;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.