rotate_scale_alpha.imagecache_preset.inc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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['rotate_scale_alpha'] = array (
  12. 'name' => 'rotate_scale_alpha',
  13. '#weight' => 1.6,
  14. 'effects' => array (
  15. 1 => array (
  16. 'weight' => '1',
  17. 'module' => 'image',
  18. 'name' => 'image_rotate',
  19. 'data' => array (
  20. 'degrees' => '65',
  21. 'random' => 0,
  22. 'bgcolor' => '',
  23. ),
  24. ),
  25. /*
  26. * imageapi resize is NOT alpha-safe. This test case proves the bug.
  27. * A work-around is to change format before resizing.
  28. 2 => array (
  29. 'weight' => '2',
  30. 'module' => 'imagecache_coloractions',
  31. 'name' => 'coloractions_convert',
  32. 'data' => array (
  33. 'format' => 'image/png',
  34. ),
  35. ),
  36. */
  37. 3 => array (
  38. 'weight' => '3',
  39. 'module' => 'image',
  40. 'name' => 'image_scale',
  41. 'data' => array (
  42. 'width' => '',
  43. 'height' => '150',
  44. 'upscale' => TRUE,
  45. ),
  46. ),
  47. 4 => array (
  48. 'weight' => '4',
  49. 'module' => 'imagecache_coloractions',
  50. 'name' => 'coloractions_convert',
  51. 'data' => array (
  52. 'format' => 'image/png',
  53. ),
  54. ),
  55. ),
  56. );