|
@@ 845-853 (lines=9) @@
|
| 842 |
|
$this->setExtension(pathinfo($image, PATHINFO_EXTENSION)); |
| 843 |
|
} |
| 844 |
|
|
| 845 |
|
if ($image instanceof FileInterface) { |
| 846 |
|
|
| 847 |
|
/* @var FileInterface $image */ |
| 848 |
|
$this->setOriginal($image->getName()); |
| 849 |
|
$this->setExtension($image->getExtension()); |
| 850 |
|
|
| 851 |
|
$this->setWidth($image->getWidth()); |
| 852 |
|
$this->setHeight($image->getHeight()); |
| 853 |
|
} |
| 854 |
|
|
| 855 |
|
if ($image instanceof FilePresenter) { |
| 856 |
|
|
|
@@ 855-865 (lines=11) @@
|
| 852 |
|
$this->setHeight($image->getHeight()); |
| 853 |
|
} |
| 854 |
|
|
| 855 |
|
if ($image instanceof FilePresenter) { |
| 856 |
|
|
| 857 |
|
/* @var FilePresenter|FileInterface $image */ |
| 858 |
|
$image = $image->getObject(); |
| 859 |
|
|
| 860 |
|
$this->setOriginal($image->getName()); |
| 861 |
|
$this->setExtension($image->getExtension()); |
| 862 |
|
|
| 863 |
|
$this->setWidth($image->getWidth()); |
| 864 |
|
$this->setHeight($image->getHeight()); |
| 865 |
|
} |
| 866 |
|
|
| 867 |
|
$this->image = $image; |
| 868 |
|
|