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.
Updated by Altan Tosun almost 4 years ago
- Related to Feature #90068: Implement better FileDumpController added
Updated by Altan Tosun almost 4 years ago
- Is duplicate of Bug #93024: PDF download from private storage yields thumbnail added
Updated by Mathias Brodala over 3 years ago
- Status changed from New to Resolved
Applied in changeset 33b2f64a3b45567b5590f3fcaf321e5ac0dc4179.
Actions