rounded_flattened.imagecache_preset.inc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * @file
  4. * Test imagecache preset.
  5. *
  6. * Created on Dec 29, 2009
  7. *
  8. * @author 'dman' Dan Morrison http://coders.co.nz/
  9. */
  10. $presets['rounded_flattened'] = array (
  11. 'name' => 'rounded_flattened',
  12. '#weight' => 3.3,
  13. 'effects' => array (
  14. 1 => array (
  15. 'weight' => '0',
  16. 'module' => 'imagecache_canvasactions',
  17. 'name' => 'canvasactions_roundedcorners',
  18. 'data' => array (
  19. 'radius' => '50',
  20. 'independent_corners_set' => array (
  21. 'independent_corners' => 1,
  22. 'radii' => array (
  23. 'tr' => '100',
  24. 'br' => '0',
  25. 'tl' => '0',
  26. 'bl' => '0',
  27. ),
  28. ),
  29. 'antialias' => true,
  30. ),
  31. ),
  32. 2 => array (
  33. 'weight' => '0',
  34. 'module' => 'imagecache_canvasactions',
  35. 'name' => 'canvasactions_definecanvas',
  36. 'data' => array (
  37. 'RGB' => array (
  38. 'HEX' => '333333',
  39. ),
  40. 'under' => 1,
  41. 'exact' => array (
  42. 'width' => '',
  43. 'height' => '',
  44. 'xpos' => 'center',
  45. 'ypos' => 'center',
  46. ),
  47. 'relative' => array (
  48. 'leftdiff' => '2',
  49. 'rightdiff' => '2',
  50. 'topdiff' => '2',
  51. 'bottomdiff' => '2',
  52. ),
  53. ),
  54. ),
  55. ),
  56. );