[!!!][BUGFIX] Crop-Scaled images have wrong file content type 97/19397/2
authorOliver Hader <oliver@typo3.org>
Fri, 22 Mar 2013 09:35:53 +0000 (10:35 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 28 Mar 2013 08:06:13 +0000 (09:06 +0100)
commit106cd209805aa24836a708050cec2e056929de22
treefad7a2478076bf370a0d6c4dc56c13739e90a7e1
parentdddf13d4ed5211376e9725e429d02aa5b977da97
[!!!][BUGFIX] Crop-Scaled images have wrong file content type

The following scenario is given:
* resize a 300dpi TIFF image to PNG using stdWrap/cObj
* the 'fileExtension' configuration is not set
* the processed file csm_... has the file extension PNG
* but the file content type is still TIFF, so the file
  was just renamed, but not converted to PNG

Since the processing task determines the accordant filename
and file extension of the processed file, the image processor
(e.g. ImageMagick) needs to know about that fact as well.

This change modifies the TaskInterface which is rarely to not
at all used in custom extensions implementing individual tasks
to process files.

Change-Id: I089edc01a39663ac91b1b9df168f659c32954fcb
Fixes: #46530
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19169
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-on: https://review.typo3.org/19397
typo3/sysext/core/Classes/Resource/Processing/AbstractGraphicalTask.php
typo3/sysext/core/Classes/Resource/Processing/AbstractTask.php
typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
typo3/sysext/core/Classes/Resource/Processing/TaskInterface.php