|
@@ 754-761 (lines=8) @@
|
| 751 |
|
$this->setHeight(array_get($size, 1)); |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
if ($image instanceof FileInterface) { |
| 755 |
|
|
| 756 |
|
/* @var FileInterface $image */ |
| 757 |
|
$this->setExtension($image->getExtension()); |
| 758 |
|
|
| 759 |
|
$this->setWidth($image->getWidth()); |
| 760 |
|
$this->setHeight($image->getHeight()); |
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
if ($image instanceof FilePresenter) { |
| 764 |
|
|
|
@@ 763-772 (lines=10) @@
|
| 760 |
|
$this->setHeight($image->getHeight()); |
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
if ($image instanceof FilePresenter) { |
| 764 |
|
|
| 765 |
|
/* @var FilePresenter|FileInterface $image */ |
| 766 |
|
$image = $image->getObject(); |
| 767 |
|
|
| 768 |
|
$this->setExtension($image->getExtension()); |
| 769 |
|
|
| 770 |
|
$this->setWidth($image->getWidth()); |
| 771 |
|
$this->setHeight($image->getHeight()); |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
$this->image = $image; |
| 775 |
|
|