Файл: vendor/intervention/image/src/Drivers/Gd/Modifiers/InvertModifier.php
Строк: 35
<?php
declare(strict_types=1);
namespace InterventionImageDriversGdModifiers;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesSpecializedInterface;
use InterventionImageModifiersInvertModifier as GenericInvertModifier;
class InvertModifier extends GenericInvertModifier implements SpecializedInterface
{
/**
* {@inheritdoc}
*
* @see ModifierInterface::apply()
*/
public function apply(ImageInterface $image): ImageInterface
{
foreach ($image as $frame) {
imagefilter($frame->native(), IMG_FILTER_NEGATE);
}
return $image;
}
}