scale_canvas.imagecache_preset.inc 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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['scale_canvas'] = array (
  12. 'name' => 'scale_canvas',
  13. '#weight' => 2.1,
  14. 'effects' => array (
  15. 1 => array (
  16. 'weight' => '1',
  17. 'module' => 'imagecache',
  18. 'name' => 'image_scale',
  19. 'data' => array (
  20. 'width' => '100',
  21. 'height' => '150',
  22. 'upscale' => TRUE,
  23. ),
  24. ),
  25. 2 => array (
  26. 'weight' => '2',
  27. 'module' => 'imagecache_canvasactions',
  28. 'name' => 'canvasactions_definecanvas',
  29. 'data' => array (
  30. 'RGB' => array (
  31. 'HEX' => 'DDDDDD',
  32. ),
  33. 'under' => 1,
  34. 'exact' => array (
  35. 'width' => '100',
  36. 'height' => '150',
  37. 'xpos' => 'center',
  38. 'ypos' => 'center',
  39. ),
  40. ),
  41. ),
  42. ),
  43. );