/** * Perform sepia manipulation. * @param Image $image The source image. * @return Image The manipulated image. */ public function runSepiaFilter(Image $image) { $image->greyscale(); $image->brightness(-10); $image->contrast(10); $image->colorize(38, 27, 12); $image->brightness(-10); $image->contrast(10); return $image; }
public function run(Image $image) { $brightness = $this->getBrightness(); if ($brightness !== null) { $image->brightness($brightness); } return $image; }
/** * Perform brightness image manipulation. * @param Request $request The request object. * @param Image $image The source image. * @return Image The manipulated image. */ public function run(Request $request, Image $image) { $brightness = $this->getBrightness($request->get('bri')); if ($brightness) { $image->brightness($brightness); } return $image; }
protected function adjustment() { if ($this->gamma) { $this->image->gamma($this->gamma); } if ($this->contrast) { $this->image->contrast($this->contrast); } if ($this->brightness) { $this->image->brightness($this->brightness); } if ($this->sharpen) { $this->image->sharpen($this->sharpen); } }
/** * Handle the image manipulation request * @param \Intervention\Image\Image $image * @param array $options * @return \Intervention\Image\Image */ public function handle($image, $options) { $options = array_merge($this->defaults, $options); return $image->brightness($options['level']); }
public function applyFilter(Image $image) { return $image->brightness($this->level); }
/** * Changes the brightness of the current image * * @param int $level [description] * @return \Intervention\Image\Image * @static */ public static function brightness($level) { return \Intervention\Image\Image::brightness($level); }