blur — Blurs an image

Description

public Intervention\Image\Image blur( [integer $amount] )

Apply a gaussian blur filter with a optional amount on the current image. Use values between 0 and 100.

Note: Performance intensive on larger amounts of blur with GD driver. Use with care.

Parameters

amount (optional)

The amount of the blur strength. Use values between 0 and 100. Default: 1

Return Values

Instance of Intervention\Image\Image

Examples

  1. // create new Intervention Image
  2. $img = Image::make('public/foo.jpg');
  3. // apply slight blur filter
  4. $img->blur();
  5. // apply stronger blur
  6. $img->blur(15);

See also