From 20751c8a5718936be851523e088f5a18c6bf474e Mon Sep 17 00:00:00 2001
From: Fabien Udriot <fabien.udriot@ecodev.ch>
Date: Thu, 2 May 2013 20:07:17 +0200
Subject: [PATCH] [BUGFIX] Remove 1000 pixelx limitation for preview image

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/20439
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
---
 .../core/Classes/Resource/Processing/LocalPreviewHelper.php   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php b/typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
index 97ef09a93bbb..8efa5b2bd43d 100644
--- a/typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
+++ b/typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
@@ -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);
 
-- 
GitLab