[BUGFIX] Remove 1000 pixelx limitation for preview image 95/20695/2
authorFabien Udriot <fabien.udriot@ecodev.ch>
Thu, 2 May 2013 18:07:17 +0000 (20:07 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 11 May 2013 15:58:09 +0000 (17:58 +0200)
There is a limitation of 1000 pixels width / height when creating a
preview image, also known as ProcessedFile::CONTEXT_IMAGEPREVIEW

The limitation is artificial and subjective and should be removed letting
more freedom to the system, e.g for generating banner which are quite
large.

Change-Id: Id86c5491437a32b0011b4fe29129c3ee433712af
Resolves: #47846
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/20695
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php

index 97ef09a..8efa5b2 100644 (file)
@@ -62,8 +62,8 @@ class LocalPreviewHelper {
 
                        // Merge custom configuration with default configuration
                $configuration = array_merge(array('width' => 64, 'height' => 64), $task->getConfiguration());
-               $configuration['width'] = Utility\MathUtility::forceIntegerInRange($configuration['width'], 1, 1000);
-               $configuration['height'] = Utility\MathUtility::forceIntegerInRange($configuration['height'], 1, 1000);
+               $configuration['width'] = Utility\MathUtility::forceIntegerInRange($configuration['width'], 1);
+               $configuration['height'] = Utility\MathUtility::forceIntegerInRange($configuration['height'], 1);
 
                $originalFileName = $sourceFile->getForLocalProcessing(FALSE);