[TYPO3] TYPO3 and a small GIFBUILDER problem for a "newbie" :-)
Steen Suurballe
Steen.Suurballe at tips.dk
Mon May 29 12:35:31 CEST 2006
Hi all
I'm pretty new at TYPO3 but have a small problem placing a red-dot (with
an offset) on an other image (size 500x337)
Idea found on the net an modified
Essential Code :
case 'fysisk':
$a=1;
$libtest = array();
$libtest[$a] = "IMAGE";
$libtest[$a."."]["file"] =
"fileadmin/user_upload/Administration_1.jpg";
$libtest[$a."."]["file."]["XY"] = "500,337";
$a++;
$libtest[$a] = "IMAGE";
$libtest[$a."."]["file"] =
"fileadmin/user_upload/red_dot.gif";
$libtest[$a."."]["offset"] = "40,20";
$img_ar = $this->cObj->getImgResource('GIFBUILDER',
$libtest);
$imgTSConfig = array();
$imgTSConfig['file'] = $img_ar[3];
$img = $this->cObj->IMAGE($imgTSConfig);
return $img;
break;
Problem is that the "resulting-builded-image" always is of size 120x50
So somehow the "XY" should not be set on the elements themselves but in
the "result", but how ?
Hope someone can help....
Regards
Steen Suurballe
DBA/Udvikler, ITU
Dansk Tipstjeneste
tlf.: 3672 2211 lokal 5123
email: ss at tips.dk
More information about the TYPO3-english
mailing list