1 | <?php |
||
11 | class ImageOutput implements ImageOutputInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var MimeTypes |
||
15 | */ |
||
16 | private static $mime; |
||
17 | |||
18 | 150 | public function __construct() |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function imageFile($content, $name, $format, $override) |
||
34 | |||
35 | /** |
||
36 | * @param $content |
||
37 | * @param $format |
||
38 | * |
||
39 | * @return \Imagick |
||
40 | */ |
||
41 | private function createImagick($content, $format) |
||
56 | |||
57 | private function checkExtensionLoaded() |
||
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | public function image($content, $format, $sendHeader) |
||
77 | |||
78 | private function trySendHeader($format) |
||
84 | |||
85 | private function getContentType($format) |
||
89 | } |