I am playing around with GT MOD at the moment. Great extension!
It seems that the generated image is 3 pixels longer on the left and right than the text on it. This prevents a correct font aligning:
What can be done to adjust this?
Thanks
GT MOD
You have to edit this line
in gt.func.inc.php, but be carfull some typos may not render properly
Code: Select all
$im = imagecreate ($font_width + 5, $font_height + 5);
That is just what I was looking for too! BUT it doesn't seem to be changing the image padding on the top, bottom, or side. WHY?isac wrote:You have to edit this line
in gt.func.inc.php, but be carfull some typos may not render properlyCode: Select all
$im = imagecreate ($font_width + 5, $font_height + 5);
PLEASE ANSWER QUESTION ON THIS POST:
http://www.phpwcms.de/forum/viewtopic.php?p=30815#30815
NOTE: I hope the image padding values will become a variable in the GT MOD frontend. That would make it much easier to access.
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
try to delete all the gt images first. maybe they are cached by the systemcolech wrote:That is just what I was looking for too! BUT it doesn't seem to be changing the image padding on the top, bottom, or side. WHY?isac wrote:You have to edit this line
in gt.func.inc.php, but be carfull some typos may not render properlyCode: Select all
$im = imagecreate ($font_width + 5, $font_height + 5);
PLEASE ANSWER QUESTION ON THIS POST:
http://www.phpwcms.de/forum/viewtopic.php?p=30815#30815
NOTE: I hope the image padding values will become a variable in the GT MOD frontend. That would make it much easier to access.
Code: Select all
content/gt/
You are right! I didn't even know about the GT's cache! I love you man!
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
You have done a VERY nice job on the GT MOD! Thank you one million times over. I LOVE IT!Jérôme wrote:The images are cached to prevent that the server has to re-create them every time the page is called by a visitor. This would result in heavy server load.
- Jérôme
while !sleeping {
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"
work_on(phpwcms);
}
// Check out our web development company!
// "Your business has character... don't hide it!"