diff --git a/Classes/EelHelpers/AssetImageSourceHelper.php b/Classes/EelHelpers/AssetImageSourceHelper.php index 9b70b34..68b336e 100644 --- a/Classes/EelHelpers/AssetImageSourceHelper.php +++ b/Classes/EelHelpers/AssetImageSourceHelper.php @@ -119,7 +119,7 @@ public function getCurrentWidth() : int } elseif ($this->targetHeight) { return round($this->targetHeight * $this->asset->getWidth() / $this->asset->getHeight()); } else { - return $this->baseWidth; + return $this->asset->getWidth(); } } @@ -131,7 +131,7 @@ public function getCurrentHeight() : int } elseif ($this->targetWidth) { return round($this->targetWidth * $this->asset->getHeight() / $this->asset->getWidth()); } else { - return $this->baseHeight; + return $this->asset->getHeight(); } } }