|
@@ 819-826 (lines=8) @@
|
| 816 |
|
$this->setExtension(pathinfo($image, PATHINFO_EXTENSION)); |
| 817 |
|
} |
| 818 |
|
|
| 819 |
|
if ($image instanceof FileInterface) { |
| 820 |
|
|
| 821 |
|
/* @var FileInterface $image */ |
| 822 |
|
$this->setExtension($image->getExtension()); |
| 823 |
|
|
| 824 |
|
$this->setWidth($image->getWidth()); |
| 825 |
|
$this->setHeight($image->getHeight()); |
| 826 |
|
} |
| 827 |
|
|
| 828 |
|
if ($image instanceof FilePresenter) { |
| 829 |
|
|
|
@@ 828-837 (lines=10) @@
|
| 825 |
|
$this->setHeight($image->getHeight()); |
| 826 |
|
} |
| 827 |
|
|
| 828 |
|
if ($image instanceof FilePresenter) { |
| 829 |
|
|
| 830 |
|
/* @var FilePresenter|FileInterface $image */ |
| 831 |
|
$image = $image->getObject(); |
| 832 |
|
|
| 833 |
|
$this->setExtension($image->getExtension()); |
| 834 |
|
|
| 835 |
|
$this->setWidth($image->getWidth()); |
| 836 |
|
$this->setHeight($image->getHeight()); |
| 837 |
|
} |
| 838 |
|
|
| 839 |
|
$this->image = $image; |
| 840 |
|
|