Hi Ben!
On 03/10/2008 09:12 AM Ben / El Bekko wrote:
> I created a short sample for reproducing the error as you requested.
> The classes are autoloaded within eZ Publish, but I guess it works with an
> include too.
> As for the platform info:
> Windows XP SP2 running WAMP
> PHP: 5.2.1
> GD: bundled (2.0.28 compatible)
I just tried out your sample. I hope that it just the trivial issue I
found and not any OS specific problems in addition. I currently don't
have a working Windows virtualbox here to test it in an environment to
yours.
You passed a string as the 3rd parameter to
ezcImageConverter->createTransformation() instead of the expected array.
This results in several catchable fatal errors and warnings and finally
in the described uncaught exception.
I attached the working version of your test case. Please try it out and
give me feedback if it works for you. Please make sure you turn your
error_reporting to <<E_ALL | E_STRICT>> (php.ini) during development to
see such errors.
Anyway, thanks for reporting, I'll enhance the value checking for the
affected methods to fix the reported issue. This is still valid, since
the handler must not be closed if it already has been.
Regards,
Toby
--
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards
Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer
[EMAIL PROTECTED] | eZ Systems AS | ez.no
'image/png',
'image/jpeg' => 'image/jpeg',
'image/png' => 'image/png'
)
);
$converter = new ezcImageConverter( $settings );
$filter = new ezcImageFilter(
'crop',
array(
'x' => 20,
'y' => 20,
'width' => 200,
'height' => 200,
)
);
// 3rd parameter should be an array, not a string
// $converter->createTransformation( 'transform', array($filter), 'image/jpeg' );
$converter->createTransformation( 'transform', array($filter), array( 'image/jpeg' ) );
$converter->transform('transform', './toby_009.jpg', './toby_009_cropped.jpg');
?>
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components