scale_canvas.imagecache_preset.inc 885 B

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