mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 17:41:58 +02:00
Fixed implicit converstion from float to int
This commit is contained in:
@@ -15,7 +15,7 @@ class BrightnessModifier implements ModifierInterface
|
||||
public function apply(ImageInterface $image): ImageInterface
|
||||
{
|
||||
foreach ($image as $frame) {
|
||||
imagefilter($frame->getCore(), IMG_FILTER_BRIGHTNESS, ($this->level * 2.55));
|
||||
imagefilter($frame->getCore(), IMG_FILTER_BRIGHTNESS, intval($this->level * 2.55));
|
||||
}
|
||||
|
||||
return $image;
|
||||
|
Reference in New Issue
Block a user