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 = '
'; return $focusTag . $this->tag->render() . '
'; diff --git a/Classes/Xclass/LocalCropScaleMaskHelper.php b/Classes/Xclass/LocalCropScaleMaskHelper.php index 4918306..6323cf0 100644 --- a/Classes/Xclass/LocalCropScaleMaskHelper.php +++ b/Classes/Xclass/LocalCropScaleMaskHelper.php @@ -1,8 +1,8 @@ 'Focuspoint', 'description' => 'Focuspoint integrate the focal point method to crop images in the frontend of the web page. Use the jQuery-focuspoint plugin (https://github.com/jonom/jquery-focuspoint example http://jonom.github.io/jquery-focuspoint/demos/helper/index.html) to crop the images. Use the function as wizard in the file list view and directly in the content element.', 'category' => 'be', - 'version' => '1.1.1', + 'version' => '1.2.0', 'state' => 'beta', 'clearcacheonload' => TRUE, 'author' => 'Tim Lochmüller',