case 'testBorderedDropShadowTransparentBG':
$time = xdebug_time_index();
- $image = getImageObject(array('filename' => 'img1.jpg',
- 'background' => 'none'));
+ $image = getImageObject(array('filename' => 'img1.jpg'));
$image->resize(150,150, true);
$image->addEffect('Border', array('bordercolor' => '#333', 'borderwidth' => 1));
$image->addEffect('DropShadow',
logThis($test, $time, $memory);
break;
+case 'testBorderedDropShadowTransparentLoadString':
+ $image = getImageObject();
+ $data = file_get_contents('img1.jpg');
+ $image->loadString($data);
+ $image->resize(150,150, true);
+ $image->addEffect('Border', array('bordercolor' => '#333', 'borderwidth' => 1));
+ $image->addEffect('DropShadow',
+ array('background' => 'none',
+ 'padding' => 5,
+ 'distance' => 8,
+ 'fade' => 2));
+ $image->display();
+ break;
+
case 'testBorderedDropShadowBlueBG':
$time = xdebug_time_index();
$image = getImageObject(array('filename' => 'img1.jpg',
{
global $conf;
- // Always pass the convert parameter to be consistent when profiling.
$context = array('tmpdir' => Horde::getTempDir(),
'convert' => $GLOBALS['convert'],
'logger' => $GLOBALS['logger'],
'testRoundCornersDropShadowTransparentBG' => 'Rounded corners with a drop shadow on a transparent background.',
'testRoundCornersDropShadowYellowBG' => 'Rounded corners, with a drop shadow on a yellow background',
'testBorderedDropShadowTransparentBG' => 'Thumbnail with border and drop shadow over a transparent background.',
+ 'testBorderedDropShadowTransparentLoadString' => 'Same as above, but using loadString after the image has been instantiated.',
'testBorderedDropShadowBlueBG' => 'Thumbnail with border, drop shadow over a blue background.',
'testPolaroidTransparentBG' => 'Polaroid effect with transparent background.',
'testPolaroidBlueBG' => 'Polaroid effect with blue background.',