corners_combo.imagecache_preset.inc 3.3 KB

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