[TYPO3] TYPO3 and a small GIFBUILDER problem for a "newbie" :-)
Peter Klein
peter at umloud.dk
Mon May 29 15:54:46 CEST 2006
Hej Steen. I do it in a slightly different way, which might work for you
too?:
$image = array();
$image['10'] = "IMAGE";
$image['10.']['file'] = 'GIFBUILDER';
$image['10.']['file.']['XY'] = '[10.w],[10.h]';
$image['10.']['file.']['10'] = 'IMAGE';
$image['10.']['file.']['10.']['file'] =
'fileadmin/templates/images/DIBD_World.gif';
$image['10.']['file.']['20'] = 'IMAGE';
$image['10.']['file.']['20.']['file'] =
'fileadmin/templates/images/marker.gif';
$image['10.']['file.']['20.']['offset'] = '280,120';
$content=$this->cObj->cObjGetSingle($image['10'], $image['10.']).'
--
Peter Klein/Umloud Untd
"Steen Suurballe" <Steen.Suurballe at tips.dk> skrev i en meddelelse
news:mailman.2875.1148898934.22948.typo3-english at lists.netfielders.de...
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