You are here

rounded_flattened.imagecache_preset.inc in ImageCache Actions 6.2

File

canvasactions/tests/rounded_flattened.imagecache_preset.inc
View source
<?php

// $ID:  $

/**
 * @file
 *   Test imagecache preset.
 * 
 * Created on Dec 29, 2009
 *
 * @author 'dman' Dan Morrison http://coders.co.nz/
 */
$presets['rounded_flattened'] = array(
  'presetname' => 'rounded_flattened',
  '#weight' => 3.3,
  'actions' => array(
    1 => array(
      'weight' => '0',
      'module' => 'imagecache_canvasactions',
      'action' => 'canvasactions_roundedcorners',
      'data' => array(
        'radius' => '50',
        'independent_corners_set' => array(
          'independent_corners' => 1,
          'radii' => array(
            'tr' => '100',
            'br' => '0',
            'tl' => '0',
            'bl' => '0',
          ),
        ),
        'antialias' => true,
      ),
    ),
    2 => array(
      'weight' => '0',
      'module' => 'imagecache_canvasactions',
      'action' => 'canvasactions_definecanvas',
      'data' => array(
        'RGB' => array(
          'HEX' => '333333',
        ),
        'under' => 1,
        'exact' => array(
          'width' => '',
          'height' => '',
          'xpos' => 'center',
          'ypos' => 'center',
        ),
        'relative' => array(
          'leftdiff' => '2',
          'rightdiff' => '2',
          'topdiff' => '2',
          'bottomdiff' => '2',
        ),
      ),
    ),
  ),
);