Learn about the top 2016 CMS trends. Read on.

Recently, Mark of The Great Books Foundation asked me `Since we never rotate our images 90 degrees, but do rotate them 2 degrees, can we change the Effect drop-down to Rotate 2 and Rotate -2 instead of Rotate 90 and Rotate -90?`

The answer is yes and to save you the near 2 hours of figuring out the solution, mine follows.

Code added to localconf.php

$TYPO3_CONF_VARS["FE"]["XCLASS"]["tslib/class.tslib_content.php"] = PATH_typo3conf . 'class.ux_tslib_content.php';
$TYPO3_CONF_VARS['SYS']['locallangXMLOverride']['EXT:cms/locallang_ttc.xml'][] = PATH_typo3conf . 'locallang.ux_tslib_content.xml';

Code in class.ux_tslib_content.php.

<!--?php <br ?-->/**
 *  Enable alternate image rotation amounts
 *  @author Michael Cannon
 *  @version $Id: .vimrc,v 1.7 2011/07/13 05:23:57 peimic.comprock Exp $
class ux_tslib_cObj extends tslib_cObj {
	function start($data, $table = '') {
		parent::start($data, $table);
		$this->image_effects[ 1 ]	= '-rotate 2';
		$this->image_effects[ 2 ]	= '-rotate 358';

Code in locallang.ux_tslib_content.xml.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
	<meta type="array">
		<description>Custom Labels for image effects</description>
	<data type="array">
		<languageKey index="default" type="array">
			<label index="image_effects.I.1">Rotate 2 CW</label>
			<label index="image_effects.I.2">Rotate 2 CCW</label>
		<languageKey index="de" type="array">
			<label index="image_effects.I.1">Drehen 2 CW</label>
			<label index="image_effects.I.2">Drehen 2 CCW</label>


If your rotated image isn’t rotating and not being displayed at, whether or not the above was applied, check that your localconf.php has `$TYPO3_CONF_VARS[‘GFX’][‘im_no_effects’] = ‘0’;` set.

Still stuck? Write us.

  • Michael,

    Thanks for this article!
    Could you tell if this trick will work in 4.6 and newer versions with XLIF ?
    I’m going to add effects not overwrite. Shoould I use the same syntax?


    • Tomasz, Thank you for writing. I’m thinking that this will work with 4.6 and newer as it’s fine with 4.5. If it’s not, do let me know and I’ll try to figure out the updates.

      • Michael, this works in 4.6.12. I also discovered how to add custom effects instead of overwriting. I’m adding labels to TCA. Your article helped me a lot. Thanks!

  • Thanks to create it so apparent and amazing support.There are certainly a lot of details like that to take into consideration. That is a amazing aspect to bring up.