code: static function filter( $width, $height )
      {
          return array(
              new ezcImageFilter( 
                  'scale',
                  array( 
                      'width'     => intval( $width ),
                      'height'    => intval( $height ),
                      'direction' => ezcImageGeometryFilters::SCALE_BOTH 
                  )
              )
          );
      }
docs: Returns a resize filter
  
  @param  int $width Resize width
  @param  int $height Resize height
  @return array( ezcImageFilter )