public function resizeByWidth($width)
    {
        return $this->createCloneWithResource(
            function (InterventionImage $resource) use ($width) {
                return $resource->widen($width);
            }
        );
    }
public function resizeByWidth($width)
    {
        return $this->createCloneWithResource(
            function (InterventionImage $resource) use ($width) {
                return $resource->widen($width);
            }
        );
    }
public function resizeByWidth ( $ width ) { return $ this -> createCloneWithResource ( function ( InterventionImage $ resource ) use ( $ width ) { return $ resource -> widen ( $ width ) ; } ) ; }
Resize an image by width. Preserves aspect ratio.

@param int $width
@return static
Resize an image by width . Preserves aspect ratio .