diff --git a/Classes/ViewHelpers/ImageViewHelper.php b/Classes/ViewHelpers/ImageViewHelper.php index 2e39815..c72cfa3 100644 --- a/Classes/ViewHelpers/ImageViewHelper.php +++ b/Classes/ViewHelpers/ImageViewHelper.php @@ -8,7 +8,6 @@ namespace HDNET\Focuspoint\ViewHelpers; -use HDNET\Focuspoint\Service\DimensionService; use TYPO3\CMS\Core\Resource\FileInterface; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -61,12 +60,6 @@ public function render($src = NULL, $width = NULL, $height = NULL, $minWidth = N // Ratio calculation $focusPointY = $internalImage->getProperty('focus_point_y'); $focusPointX = $internalImage->getProperty('focus_point_x'); - $width = $this->tag->getAttribute('width'); - $height = $this->tag->getAttribute('height'); - - /** @var \HDNET\Focuspoint\Service\DimensionService $service */ - $dimensionService = GeneralUtility::makeInstance('HDNET\\Focuspoint\\Service\\DimensionService'); - list($focusWidth, $focusHeight) = $dimensionService->getFocusWidthAndHeight($width, $height, $ratio); $focusTag = '