Project

General

Profile

Actions

Feature #70858

closed

Add possibility to "hook" into the processing chain

Added by Frans Saris over 8 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-10-20
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It should be possible to hook into the processing chain so you can manipulate the result of processed files.

For instance to:
  • change the filename of the processed file
  • watermark all processed files

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #67754: Cleanup "crop" implementationClosed2015-06-25

Actions
Related to TYPO3 Core - Epic #88027: Properly handle Hooks/Signals and EventsClosedBenni Mack2022-04-22

Actions
Actions #1

Updated by Charles Coleman over 8 years ago

I wholeheartedly second this feature request. This is something that I could have use on several client sites yesterday.

Actions #2

Updated by Riccardo De Contardi about 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #3

Updated by Benni Mack over 6 years ago

  • Parent task deleted (#54229)
Actions #4

Updated by Susanne Moog about 6 years ago

  • Target version deleted (9.0)
Actions #5

Updated by Susanne Moog about 5 years ago

Basically this is already prepared, but the registry / evaluation part is missing. There is a `ProcessorInterface` which is currently only implemented by the `LocalImageProcessor` which is then directly used in `\TYPO3\CMS\Core\Resource\Service\FileProcessingService::process` - at that place there should be a chain of processors instead with configured task types and priorities.

Actions #6

Updated by Susanne Moog about 5 years ago

  • Related to Task #67754: Cleanup "crop" implementation added
Actions #7

Updated by Benni Mack about 5 years ago

  • Related to Epic #88027: Properly handle Hooks/Signals and Events added
Actions #8

Updated by Benni Mack 7 months ago

  • Status changed from New to Needs Feedback

Hey,

I looked into it and we have two PSR-14 events:
  • BeforeFileProcessingEvent
  • AfterFileProcessingEvent

they allow for doing anything you want - call your own processor, chain them, and then really not process the TYPO3 default way.

I don't know if we need even more here, what do you think?

Actions #9

Updated by Christian Kuhn 4 months ago

  • Status changed from Needs Feedback to Closed

Hey. Closing here for now: In case the given events are not enough, we could add further things with a more specific fresh issue.

Actions

Also available in: Atom PDF