Content copyright © 2006-2007 by eZ systems A.S.
|
|
|
|
Description:
The ImageMagick implementation of scalePercent checks if the width scale is over 100%. It doesn't really makes sense since it's not a problem to scale an image over 100%, the same test is not applied to the height and ezcImageGdHandler allows it. See: Environment: Any system, any version of PHP, any version of Image Magick, last version of eZ Components Steps to Reproduce: $settings = new ezcImageConverterSettings( $converter = new ezcImageConverter( $settings ); $filters = array( $converter->createTransformation( 'scalepercent', $filters, array( 'image/jpeg', 'image/png' ) ); try{ $converter->transform( 'scalepercent', 'whatever.jpg', 'whatever2.jpg' ); }catch ( ezcImageTransformationException $e) { die( "Error transforming the image: <{$e->getMessage()}>" ); |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||