relative_canvas.imagecache_preset.inc 829 B

123456789101112131415161718192021222324252627282930313233343536373839
  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['relative_canvas'] = array (
  11. 'name' => 'relative_canvas',
  12. '#weight' => 2.0,
  13. 'effects' => array (
  14. 0 => array (
  15. 'weight' => '0',
  16. 'module' => 'imagecache_canvasactions',
  17. 'name' => 'canvasactions_definecanvas',
  18. 'data' => array (
  19. 'RGB' => array (
  20. 'HEX' => '333333',
  21. ),
  22. 'under' => 1,
  23. 'exact' => array (
  24. 'width' => '',
  25. 'height' => '',
  26. 'xpos' => 'center',
  27. 'ypos' => 'center',
  28. ),
  29. 'relative' => array (
  30. 'leftdiff' => '10',
  31. 'rightdiff' => '10',
  32. 'topdiff' => '10',
  33. 'bottomdiff' => '10',
  34. ),
  35. ),
  36. ),
  37. ),
  38. );