[!!!][BUGFIX] Crop-Scaled images have wrong file content type 69/19169/3
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:04:53 +0000 (09:04 +0100)
commit7b655915e30fe58c23bfccb5641394526583fc63
tree986dd9cc00f2303362b6069d39cb256f5fbb8c21
parentb7e30416ffdfa96b94a718052fc61b2cbe11a028
[!!!][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
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