Actions
Bug #93410
closedThe download of pdf files via privatestorage/eID returns an image
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2021-02-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
7.4
Tags:
pdf, image, FileDumpController, processing
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Core Bug/Case: TYPO3 Version 10.4.12, PHP 7.4
namespace TYPO3\CMS\Core\Controller\FileDumpController:85;
The issue is that this is an unexpected behavour. The function tries to process everything.
// Apply cropping, if possible
if (!$file instanceof ProcessedFile) {
$cropVariant = $parameters['cv'] ?: 'default';
$cropString = $file instanceof FileReference ? $file->getProperty('crop') : '';
$cropArea = CropVariantCollection::create((string)$cropString)->getCropArea($cropVariant);
$processingInstructions = [
'crop' => $cropArea->isEmpty() ? null : $cropArea->makeAbsoluteBasedOnFile($file),
];
Expectation should be to get the original file and not an unexpected behavour. If I want to process images, I want to use explicit image processes. Same goes for huge images, for example image databases. At least there should be an config or setting to change this behavour.
Actions