[TYPO3-english] Create GIFBULDER image object using the API
Matias Coca
matiascoca at gmail.com
Sat Apr 4 00:07:25 CEST 2009
Matias Coca
On Fri, Apr 3, 2009 at 5:08 PM, Michael Miousse <mmiousse at infoglobe.ca>wrote:
> Le Fri, 03 Apr 2009 15:43:44 -0300, Matias Coca a écrit :
>
> > $path = $myImagePath;
> > $cObj = t3lib_div::makeInstance('tslib_cObj');
> >
> > $imgTSConfigThumb['file'] = 'GIFBUILDER';
> > $imgTSConfigThumb['file.']['XY'] = 150,100
> > $imgTSConfigThumb['file.']['format'] = 'jpg';
> > $imgTSConfigThumb['file.']['quality'] = 85;
> > $imgTSConfigThumb['file.']['backColor'] = 'white';
> > $imgTSConfigThumb['file.']['10'] = 'IMAGE';
> > $imgTSConfigThumb['file.']['10.']['file.']['import'] = $path;
> > $imgTSConfigThumb['file.']['10.']['file.']['maxW'] = 150;
> > $imgTSConfigThumb['file.']['10.']['file.']['maxH'] = 100;
> > $imgTSConfigThumb['file.']['10.']['align'] = 'c,c';
> >
> > $thumbpath = $this->cObj->IMG_RESOURCE($imgTSConfigThumb); $link =
> > '<img src="'.$thumbpath.'" class="thumbnail" />';
>
> do you mean something like this:
No, maybe i not expressed correctly.
I want put an image inside the gifbuilder object image.
$imgTSConfigThumb['file.']['10'] = 'IMAGE';
$imgTSConfigThumb['file.']['10.']['file.']['import'] = $path;
$imgTSConfigThumb['file.']['10.']['file.']['maxW'] = 150;
$imgTSConfigThumb['file.']['10.']['file.']['maxH'] = 100;
$imgTSConfigThumb['file.']['10.']['align'] = 'c,c';
but this doesn't work.
>
> $path = $myImagePath;
> $cObj = t3lib_div::makeInstance('tslib_cObj');
>
> $imgTSConfigThumb['file'] = 'GIFBUILDER';
> $imgTSConfigThumb['file.']['XY'] = 150,100
> $imgTSConfigThumb['file.']['format'] = 'jpg';
> $imgTSConfigThumb['file.']['quality'] = 85;
> $imgTSConfigThumb['file.']['backColor'] = 'white';
> $imgTSConfigThumb['file.']['10'] = 'IMAGE';
> $imgTSConfigThumb['file.']['10.']['file.']['import'] = $path;
> $imgTSConfigThumb['file.']['10.']['file.']['maxW'] = 150;
> $imgTSConfigThumb['file.']['10.']['file.']['maxH'] = 100;
> $imgTSConfigThumb['file.']['10.']['align'] = 'c,c';
> $imgTSConfigThumb['file'][20] = 'IMAGE';
> $imgTSConfigThumb['file'][20]['file'] = 'GIFBUILDER';
> $imgTSConfigThumb['file.'][20.]['file.']['XY'] = 150,100
> $imgTSConfigThumb['file.'][20.]['file.']['format'] = 'jpg';
> $imgTSConfigThumb['file.'][20.]['file.']['quality'] = 85;
> $imgTSConfigThumb['file.'][20.]['file.']['backColor'] = 'white';
>
> $thumbpath = $this->cObj->IMG_RESOURCE($imgTSConfigThumb);
> $link = '<img src="'.$thumbpath.'" class="thumbnail" />';
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list