1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- // $ID: $
- /**
- * @file
- * Test imagecache preset.
- *
- * Created on Dec 29, 2009
- *
- * @author 'dman' Dan Morrison http://coders.co.nz/
- */
- $presets['rotate_scale_alpha'] = array (
- 'name' => 'rotate_scale_alpha',
- '#weight' => 1.6,
- 'effects' => array (
- 1 => array (
- 'weight' => '1',
- 'module' => 'image',
- 'name' => 'image_rotate',
- 'data' => array (
- 'degrees' => '65',
- 'random' => 0,
- 'bgcolor' => '',
- ),
- ),
- /*
- * imageapi resize is NOT alpha-safe. This test case proves the bug.
- * A work-around is to change format before resizing.
- 2 => array (
- 'weight' => '2',
- 'module' => 'imagecache_coloractions',
- 'name' => 'coloractions_convert',
- 'data' => array (
- 'format' => 'image/png',
- ),
- ),
- */
- 3 => array (
- 'weight' => '3',
- 'module' => 'image',
- 'name' => 'image_scale',
- 'data' => array (
- 'width' => '',
- 'height' => '150',
- 'upscale' => TRUE,
- ),
- ),
- 4 => array (
- 'weight' => '4',
- 'module' => 'imagecache_coloractions',
- 'name' => 'coloractions_convert',
- 'data' => array (
- 'format' => 'image/png',
- ),
- ),
- ),
- );
|