first import
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['cheap_dropshadow'] = array (
|
||||
'name' => 'cheap_dropshadow',
|
||||
'#weight' => '3.3',
|
||||
'effects' =>
|
||||
array (
|
||||
-1 => array (
|
||||
'weight' => '-1',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' => array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
0 =>
|
||||
array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_definecanvas',
|
||||
'data' =>
|
||||
array (
|
||||
'RGB' =>
|
||||
array (
|
||||
'HEX' => '999999',
|
||||
),
|
||||
'under' => 0,
|
||||
'exact' =>
|
||||
array (
|
||||
'width' => '',
|
||||
'height' => '',
|
||||
'xpos' => 'center',
|
||||
'ypos' => 'center',
|
||||
),
|
||||
'relative' =>
|
||||
array (
|
||||
'leftdiff' => '0',
|
||||
'rightdiff' => '0',
|
||||
'topdiff' => '0',
|
||||
'bottomdiff' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'weight' => '1',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_definecanvas',
|
||||
'data' =>
|
||||
array (
|
||||
'RGB' =>
|
||||
array (
|
||||
'HEX' => '',
|
||||
),
|
||||
'under' => 1,
|
||||
'exact' =>
|
||||
array (
|
||||
'width' => '',
|
||||
'height' => '',
|
||||
'xpos' => 'center',
|
||||
'ypos' => 'center',
|
||||
),
|
||||
'relative' =>
|
||||
array (
|
||||
'leftdiff' => '20',
|
||||
'rightdiff' => '0',
|
||||
'topdiff' => '20',
|
||||
'bottomdiff' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'weight' => '2',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_source2canvas',
|
||||
'data' =>
|
||||
array (
|
||||
'xpos' => 0,
|
||||
'ypos' => 0,
|
||||
'alpha' => '100',
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'weight' => '3',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale',
|
||||
'data' =>
|
||||
array (
|
||||
'width' => '200',
|
||||
'height' => '100%',
|
||||
'upscale' => 0,
|
||||
),
|
||||
),
|
||||
4 => array (
|
||||
'weight' => '10',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' => array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 24 KiB |
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['keyword_positioning'] = array (
|
||||
'name' => 'keyword_positioning',
|
||||
'#weight' => 4.2,
|
||||
'effects' => array (
|
||||
array (
|
||||
'weight' => '-1',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => 'right',
|
||||
'ypos' => 'top',
|
||||
'alpha' => '100',
|
||||
'path' => drupal_get_path('module', 'imagecache_testsuite') . "/grid-240x160.png",
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => '25%',
|
||||
'ypos' => 'bottom-10%',
|
||||
'path' => 'misc/druplicon.png',
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => '0%',
|
||||
'ypos' => 'top+10%',
|
||||
'path' => 'misc/druplicon.png',
|
||||
),
|
||||
),
|
||||
|
||||
array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => 'right+50',
|
||||
'ypos' => '50%',
|
||||
'path' => 'misc/druplicon.png',
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 9.8 KiB |
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['positioned_underlay'] = array (
|
||||
'name' => 'positioned_underlay',
|
||||
'#weight' => 4.4,
|
||||
'effects' => array (
|
||||
0 => array (
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale',
|
||||
'weight' => '0',
|
||||
'data' => array (
|
||||
'width' => '200',
|
||||
'height' => '',
|
||||
'upscale' => 0,
|
||||
),
|
||||
),
|
||||
1 => array (
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_canvas2file',
|
||||
'weight' => '1',
|
||||
'data' => array (
|
||||
'xpos' => '50',
|
||||
'ypos' => 'bottom+50',
|
||||
'alpha' => '100',
|
||||
'path' => "$filepath/shiny-bg.png",
|
||||
'dimensions' => 'background',
|
||||
),
|
||||
),
|
||||
4 => array (
|
||||
'weight' => '10',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' => array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rotate_alpha'] = array (
|
||||
'name' => 'rotate_alpha',
|
||||
'#weight' => 1.4,
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '1',
|
||||
'module' => 'image',
|
||||
'name' => 'image_rotate',
|
||||
'data' => array (
|
||||
'degrees' => '15',
|
||||
'random' => 0,
|
||||
'bgcolor' => '',
|
||||
),
|
||||
),
|
||||
3 => array (
|
||||
'weight' => '3',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' => array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 76 KiB |
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rotate_alpha_gif'] = array (
|
||||
'name' => 'rotate_alpha_gif',
|
||||
'#weight' => 1.5,
|
||||
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '1',
|
||||
'module' => 'image',
|
||||
'name' => 'image_rotate',
|
||||
'data' => array (
|
||||
'degrees' => '15',
|
||||
'random' => 0,
|
||||
'bgcolor' => '',
|
||||
),
|
||||
),
|
||||
3 => array (
|
||||
'weight' => '3',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' => array (
|
||||
'format' => 'image/gif',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rotate_scale'] = array (
|
||||
'name' => 'rotate_scale',
|
||||
'#weight' => 1.2,
|
||||
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '1',
|
||||
'module' => 'image',
|
||||
'name' => 'image_rotate',
|
||||
'data' => array (
|
||||
'degrees' => '15',
|
||||
'random' => 0,
|
||||
'bgcolor' => '',
|
||||
),
|
||||
),
|
||||
2 => array (
|
||||
'weight' => '2',
|
||||
'module' => 'image',
|
||||
'name' => 'image_scale',
|
||||
'data' => array (
|
||||
'width' => '',
|
||||
'height' => '150',
|
||||
'upscale' => TRUE,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 4.8 KiB |
@@ -0,0 +1,59 @@
|
||||
<?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',
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rounded'] = array (
|
||||
'name' => 'rounded',
|
||||
'#weight' => 3.0,
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_roundedcorners',
|
||||
'data' => array (
|
||||
'radius' => '25',
|
||||
'antialias' => true,
|
||||
),
|
||||
),
|
||||
2 => array (
|
||||
'weight' => '3',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' =>array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 69 KiB |
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rounded_bl'] = array (
|
||||
'name' => 'rounded_bl',
|
||||
'#weight' => 3.1,
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_roundedcorners',
|
||||
'data' => array (
|
||||
'radius' => '50',
|
||||
'independent_corners_set' => array (
|
||||
'independent_corners' => 1,
|
||||
'radii' => array (
|
||||
'tl' => '10',
|
||||
'tr' => '0',
|
||||
'bl' => '50',
|
||||
'br' => '10',
|
||||
),
|
||||
),
|
||||
'antialias' => true,
|
||||
),
|
||||
),
|
||||
2 => array (
|
||||
'weight' => '3',
|
||||
'module' => 'imagecache_coloractions',
|
||||
'name' => 'coloractions_convert',
|
||||
'data' =>array (
|
||||
'format' => 'image/png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 69 KiB |
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['rounded_flattened'] = array (
|
||||
'name' => 'rounded_flattened',
|
||||
'#weight' => 3.3,
|
||||
|
||||
'effects' => array (
|
||||
1 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_roundedcorners',
|
||||
'data' => array (
|
||||
'radius' => '50',
|
||||
'independent_corners_set' => array (
|
||||
'independent_corners' => 1,
|
||||
'radii' => array (
|
||||
'tr' => '100',
|
||||
'br' => '0',
|
||||
'tl' => '0',
|
||||
'bl' => '0',
|
||||
),
|
||||
),
|
||||
'antialias' => true,
|
||||
),
|
||||
),
|
||||
2 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_definecanvas',
|
||||
'data' => array (
|
||||
'RGB' => array (
|
||||
'HEX' => '333333',
|
||||
),
|
||||
'under' => 1,
|
||||
'exact' => array (
|
||||
'width' => '',
|
||||
'height' => '',
|
||||
'xpos' => 'center',
|
||||
'ypos' => 'center',
|
||||
),
|
||||
'relative' => array (
|
||||
'leftdiff' => '2',
|
||||
'rightdiff' => '2',
|
||||
'topdiff' => '2',
|
||||
'bottomdiff' => '2',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['watermark_100'] = array (
|
||||
'name' => 'watermark_100',
|
||||
'#weight' => 4.0,
|
||||
'effects' => array (
|
||||
0 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => '10',
|
||||
'ypos' => '5',
|
||||
'alpha' => '100',
|
||||
'path' => 'misc/druplicon.png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 8.0 KiB |
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// $ID: $
|
||||
/**
|
||||
* @file
|
||||
* Test imagecache preset.
|
||||
*
|
||||
* Created on Dec 29, 2009
|
||||
*
|
||||
* @author 'dman' Dan Morrison http://coders.co.nz/
|
||||
*/
|
||||
|
||||
$presets['watermark_50'] = array (
|
||||
'name' => 'watermark_50',
|
||||
'#weight' => 4.1,
|
||||
'effects' => array (
|
||||
0 => array (
|
||||
'weight' => '0',
|
||||
'module' => 'imagecache_canvasactions',
|
||||
'name' => 'canvasactions_file2canvas',
|
||||
'data' => array (
|
||||
'xpos' => 'right+20',
|
||||
'ypos' => 'bottom',
|
||||
'alpha' => '50',
|
||||
'path' => 'misc/druplicon.png',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
After Width: | Height: | Size: 8.0 KiB |