<?php

/*
 * This file is part of Sulu.
 *
 * (c) Sulu GmbH
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Sulu\Bundle\MediaBundle\Media\ImageConverter\Transformation;

use Imagine\Image\ImageInterface;

/**
 * Adds the negative effect to an image.
 */
class NegativeTransformation implements TransformationInterface
{
    public function execute(ImageInterface $image, $parameters)
    {
        $image->effects()->negative();

        return $image;
    }
}
