|
@@ 779-786 (lines=8) @@
|
| 776 |
|
$this->setExtension(pathinfo($image, PATHINFO_EXTENSION)); |
| 777 |
|
} |
| 778 |
|
|
| 779 |
|
if ($image instanceof FileInterface) { |
| 780 |
|
|
| 781 |
|
/* @var FileInterface $image */ |
| 782 |
|
$this->setExtension($image->getExtension()); |
| 783 |
|
|
| 784 |
|
$this->setWidth($image->getWidth()); |
| 785 |
|
$this->setHeight($image->getHeight()); |
| 786 |
|
} |
| 787 |
|
|
| 788 |
|
if ($image instanceof FilePresenter) { |
| 789 |
|
|
|
@@ 788-797 (lines=10) @@
|
| 785 |
|
$this->setHeight($image->getHeight()); |
| 786 |
|
} |
| 787 |
|
|
| 788 |
|
if ($image instanceof FilePresenter) { |
| 789 |
|
|
| 790 |
|
/* @var FilePresenter|FileInterface $image */ |
| 791 |
|
$image = $image->getObject(); |
| 792 |
|
|
| 793 |
|
$this->setExtension($image->getExtension()); |
| 794 |
|
|
| 795 |
|
$this->setWidth($image->getWidth()); |
| 796 |
|
$this->setHeight($image->getHeight()); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
$this->image = $image; |
| 800 |
|
|