[TYPO3] reducing colors

christian oettinger christian.oettinger at gmx.de
Fri Apr 11 23:20:53 CEST 2008


Hi all,

I have a FE plugin that gives out a modified (cropped and color changed) 
version of a picture. It works great, but I would also like to reduce 
the colors (for I have many of these pictures on the page). Is this 
possible?

thanks for any hint!

oe (christian)



-- In static setup: --

     pi1_image=IMAGE
     pi1_image {
		file.params = -colorspace GRAY -colorize 55%
     }



-- In code:  --

// getting with of picture from flexform field of plugin
$this->picturewidth = 
$this->pi_getFFvalue($this->cObj->data['pi_flexform'],'width_of_file','sDEF');
// setting this with
$this->conf['pi1_image.']['file.']['width'] = $this->picturewidth.'c';
$this->conf['pi1_image.']['file.']['height'] = $this->picturewidth.'c';


More information about the TYPO3-english mailing list