Skip to content
Snippets Groups Projects
Commit 20751c8a authored by Fabien Udriot's avatar Fabien Udriot Committed by Wouter Wolters
Browse files

[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
parent 09829bf1
Branches
Tags
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment