src/Manipulators/Border.php
public function runShrink(Image $image, $width, $color)
    {
        return $image
            ->resize(
                $image->width() - ($width * 2),
                $image->height() - ($width * 2)
            )
            ->resizeCanvas(
                $width * 2,
                $width * 2,
                'center',
                true,
                $color
            );
    }
public function runShrink(Image $image, $width, $color)
    {
        return $image
            ->resize(
                $image->width() - ($width * 2),
                $image->height() - ($width * 2)
            )
            ->resizeCanvas(
                $width * 2,
                $width * 2,
                'center',
                true,
                $color
            );
    }
public function runShrink ( Image $ image , $ width , $ color ) { return $ image -> resize ( $ image -> width ( ) - ( $ width * 2 ) , $ image -> height ( ) - ( $ width * 2 ) ) -> resizeCanvas ( $ width * 2 , $ width * 2 , 'center' , true , $ color ) ; }
Run the shrink border method.
@param  Image  $image The source image.
@param  double $width The border width.
@param  string $color The border color.
@return Image  The manipulated image.
Run the shrink border method .