forked from sonata-project/SonataMediaBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResizerInterface.php
35 lines (30 loc) · 871 Bytes
/
ResizerInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\MediaBundle\Resizer;
use Gaufrette\File;
use Sonata\MediaBundle\Model\MediaInterface;
interface ResizerInterface
{
/**
* @param MediaInterface $media
* @param File $in
* @param File $out
* @param string $format
* @param array $settings
*/
public function resize(MediaInterface $media, File $in, File $out, $format, array $settings);
/**
* @param MediaInterface $media
* @param array $settings
*
* @return Box
*/
public function getBox(MediaInterface $media, array $settings);
}