corners_combo.imagecache_preset.inc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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['corners_combo'] = array (
  11. 'name' => 'corners_combo',
  12. '#weight' => 9,
  13. 'effects' => array (
  14. 0 => array (
  15. 'weight' => '-10',
  16. 'module' => 'imagecache_canvasactions',
  17. 'name' => 'canvasactions_definecanvas',
  18. 'data' => array (
  19. 'RGB' => array (
  20. 'HEX' => 'e5e8a1',
  21. ),
  22. 'under' => 1,
  23. 'exact' => array (
  24. 'width' => '',
  25. 'height' => '',
  26. 'xpos' => 'center',
  27. 'ypos' => 'center',
  28. ),
  29. 'relative' => array (
  30. 'leftdiff' => '4',
  31. 'rightdiff' => '4',
  32. 'topdiff' => '4',
  33. 'bottomdiff' => '4',
  34. ),
  35. ),
  36. ),
  37. 1 => array (
  38. 'weight' => '-9',
  39. 'module' => 'imagecache_canvasactions',
  40. 'name' => 'canvasactions_definecanvas',
  41. 'data' => array (
  42. 'RGB' => array (
  43. 'HEX' => '',
  44. ),
  45. 'under' => 1,
  46. 'exact' => array (
  47. 'width' => '',
  48. 'height' => '',
  49. 'xpos' => 'center',
  50. 'ypos' => 'center',
  51. ),
  52. 'relative' => array (
  53. 'leftdiff' => '4',
  54. 'rightdiff' => '4',
  55. 'topdiff' => '4',
  56. 'bottomdiff' => '4',
  57. ),
  58. ),
  59. ),
  60. 2 => array (
  61. 'weight' => '-8',
  62. 'module' => 'imagecache_canvasactions',
  63. 'name' => 'canvasactions_file2canvas',
  64. 'data' => array (
  65. 'xpos' => 'left',
  66. 'ypos' => 'top',
  67. 'alpha' => '100',
  68. 'path' => "$filepath/corner-tl.png",
  69. ),
  70. ),
  71. 3 => array (
  72. 'weight' => '-7',
  73. 'module' => 'imagecache_canvasactions',
  74. 'name' => 'canvasactions_file2canvas',
  75. 'data' => array (
  76. 'xpos' => 'right',
  77. 'ypos' => 'top',
  78. 'alpha' => '100',
  79. 'path' => "$filepath/corner-tr.png",
  80. ),
  81. ),
  82. 4 =>
  83. array (
  84. 'weight' => '-6',
  85. 'module' => 'imagecache_canvasactions',
  86. 'name' => 'canvasactions_file2canvas',
  87. 'data' => array (
  88. 'xpos' => 'left',
  89. 'ypos' => 'bottom',
  90. 'alpha' => '100',
  91. 'path' => "$filepath/corner-bl.png",
  92. ),
  93. ),
  94. 5 => array (
  95. 'weight' => '-5',
  96. 'module' => 'imagecache_canvasactions',
  97. 'name' => 'canvasactions_file2canvas',
  98. 'data' => array (
  99. 'xpos' => 'right',
  100. 'ypos' => 'bottom',
  101. 'alpha' => '100',
  102. 'path' => "$filepath/corner-br.png",
  103. ),
  104. ),
  105. 6 => array (
  106. 'weight' => '-4',
  107. 'module' => 'image',
  108. 'name' => 'image_rotate',
  109. 'data' => array (
  110. 'degrees' => '7',
  111. 'random' => 0,
  112. 'bgcolor' => '',
  113. ),
  114. ),
  115. 7 => array (
  116. 'weight' => '-3',
  117. 'module' => 'image',
  118. 'name' => 'image_scale',
  119. 'data' => array (
  120. 'width' => '300',
  121. 'height' => '',
  122. 'upscale' => 0,
  123. ),
  124. ),
  125. 8 => array (
  126. 'weight' => '-2',
  127. 'module' => 'imagecache_canvasactions',
  128. 'name' => 'canvasactions_canvas2file',
  129. 'data' => array (
  130. 'xpos' => '',
  131. 'ypos' => '',
  132. 'alpha' => '100',
  133. 'path' => "$filepath/background-2.jpg",
  134. 'dimensions' => 'original',
  135. ),
  136. ),
  137. ),
  138. );