Completed
Push — master ( 88775a...110466 )
by
unknown
22s queued 12s
created

AutoRotateFilterLoader::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\Imagine\Filter\Loader;
13
14
use Imagine\Filter\Basic\Autorotate;
15
use Imagine\Image\ImageInterface;
16
17
/**
18
 * AutoRotateFilterLoader - rotates an Image based on its EXIF Data.
19
 *
20
 * @author Robert Schönthal <[email protected]>
21
 */
22
class AutoRotateFilterLoader implements LoaderInterface
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function load(ImageInterface $image, array $options = [])
28
    {
29
        $filter = new Autorotate();
30
31
        return $filter->apply($image);
32
    }
33
}
34