src/ImboClient/Http/ImageUrl.php
public function resize($width = null, $height = null) {
        $params = array();

        if ($width) {
            $params[] = 'width=' . (int) $width;
        }

        if ($height) {
            $params[] = 'height=' . (int) $height;
        }

        if (!$params) {
            throw new InvalidArgumentException('width and/or height must be specified');
        }

        return $this->addTransformation(sprintf('resize:%s', implode(',', $params)));
    }
public function resize($width = null, $height = null) {
        $params = array();

        if ($width) {
            $params[] = 'width=' . (int) $width;
        }

        if ($height) {
            $params[] = 'height=' . (int) $height;
        }

        if (!$params) {
            throw new InvalidArgumentException('width and/or height must be specified');
        }

        return $this->addTransformation(sprintf('resize:%s', implode(',', $params)));
    }
public function resize ( $ width = null , $ height = null ) { $ params = array ( ) ; if ( $ width ) { $ params [ ] = 'width=' . ( int ) $ width ; } if ( $ height ) { $ params [ ] = 'height=' . ( int ) $ height ; } if ( ! $ params ) { throw new InvalidArgumentException ( 'width and/or height must be specified' ) ; } return $ this -> addTransformation ( sprintf ( 'resize:%s' , implode ( ',' , $ params ) ) ) ; }
Add a resize transformation

@param int $width Width of the resized image
@param int $height Height of the resized image
@return self
@throws InvalidArgumentException
Add a resize transformation