[TYPO3-core] RFC Feature #9292: Integrate hook at the end of tslib_cObj::getImgResource
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Mon Aug 31 11:04:32 CEST 2009
Hi Oliver,
fine, that this patch is in core now - but sorry, it doesn't work:
In protected function getGetImgResourceHookObjects() either
global $TYPO3_CONF_VARS;
is missing _or_ you have to use
$GLOBALS['TYPO3_CONF_VARS']
instead of $TYPO3_CONF_VARS.
Found this out, becaue my plugin 'roudned_corners' didn't woth apter
last SVN updaten ... :(
Isn't that check covered by the unit-test ?
/Stefan
Oliver Hader schrieb:
> FYI: Committed to SVN Trunk:
> * new hook (rev. 5847)
> * test case (rev. 5848)
>
> olly
>
>
> Oliver Hader schrieb:
>> This is an SVN patch request.
>>
>> Type: Feature
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=9292
>>
>> Branches: Trunk
>>
>> Problem:
>> Imagine you'd like to post-process any image file by a special effect
>> that is not covered by the current standard possibilities of ImageMagick
>> or the image rendering functionality of TYPO3 in general.
>>
>> Solution:
>> Add a new hook to the bottom of the getImgResource() method. Since the
>> regular image rendering would just return the result this is now put to
>> the local variable $imageResource and processed by the hook later on.
>>
>> Notes:
>> You can use the attached unit test to ensure that the hook object gets
>> called correctly with the expected information.
>>
>> olly
More information about the TYPO3-team-core
mailing list