[!!!][BUGFIX] Scope of ProcessedFile cannot be modified 02/19502/2
authorOliver Hader <oliver@typo3.org>
Sat, 30 Mar 2013 08:55:26 +0000 (09:55 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 1 Apr 2013 20:47:16 +0000 (22:47 +0200)
commit91783bd52f2f0559614881c421e54f1e6730ac45
tree4677bb62b9df73877f108958d16678724bd1efa1
parent0fe3945997c75c526a728d2eb4a142d40b25926d
[!!!][BUGFIX] Scope of ProcessedFile cannot be modified

A ProcessedFile is used to generate a preview or crop-scaled
version of a File. Actually a Task implementing the
TaskInterface defines the basics and an accordant Helper
object takes care of the modifications to that file.
There are pre-process and post-process signals that seem to
be useless in modifying the scope of a particular task, however.

Imagine a file shall be pre-processed (e.g. color profile
transformation) and that result shall be used for resizing.
The current task implementation is using the original file
directly, however the task actually shall define which is the
source (the original file) the modifications shall be based on.

This change modifies the TaskInterface with a getSourceFile()
method to overcome this limitation.

Change-Id: I280ea9a0bf056f9eee0a06995ab809fdafb8a11a
Fixes: #46795
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19502
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