| 1 | <?php |
||
| 10 | class TinyThumbnailExtractor implements ExtractorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Imagick |
||
| 14 | */ |
||
| 15 | private $imagick; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $sampleWidth; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $sampleHeight; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * TinyThumbnailExtractor constructor. |
||
| 29 | * |
||
| 30 | * @param Imagick $imagick |
||
| 31 | * @param int $sampleWidth |
||
| 32 | * @param int $sampleHeight |
||
| 33 | */ |
||
| 34 | 4 | public function __construct(Imagick $imagick, $sampleWidth = 5, $sampleHeight = 5) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 2 | public function extract($content) |
|
| 53 | } |
||
| 54 |