if ($view == 'prettythumb') {
// If we still fail, the exception gets thrown up the chain.
$iview = Ansel_ImageView::factory('Thumb', array('image' => $this, 'style' => 'ansel_default'));
+ } else {
+ // If it wasn't a prettythumb, then something else must be wrong
+ throw $e;
}
}
try {
$this->_image->addEffect($type, $params);
} catch (Horde_Image_Exception $e) {
+ Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_DEBUG);
throw new Ansel_Exception($e);
}
}
}
try {
- $this->_image->addEffect('border', array('bordercolor' => '#333'));
+ $this->_image->addEffect('Border', array('bordercolor' => '#333', 'borderwidth' => 1));
$this->_image->addEffect('DropShadow',
array('background' => $styleDef['background'],
'padding' => 5,
- 'distance' => '8',
+ 'distance' => 8,
'fade' => 2));
$this->_image->applyEffects();
} catch (Horde_Image_Exception $e) {