Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.4.0, 4.5.0
-
None
-
eZ Publish Enterprise 4.4
eZ Image Editor 1.0
Description
In eZImageEditor class eZIEImageToolResize there is a function call in line 45
static function resize( $src, $dst, $width, $height ) { $imageconverter = new eZIEezcImageConverter( self::filter( $height, $width ) ); $imageconverter->perform( $src, $dst ); }
But in the same class the filter fuunction has an constructer with changed patameters width & hight
static function filter( $width, $height ) { return array( new ezcImageFilter( 'scale', array( 'width' => intval( $width ), 'height' => intval( $height ), 'direction' => ezcImageGeometryFilters::SCALE_BOTH ) ) ); }
So the result is wrong image resizing.