Here are some of the examples from the sticker plugin config/info page
And as you can see in my sig below the interactive stickers (both static and animated) is just fine
Server Info:
- Ubuntu 16.04 (Hosted on Amazon Lightsail)
- Apache Server version: Apache/2.4.18 (Ubuntu) Server built: 2017-09-18T15:09:02
- php Version: 7.0.28-0ubuntu0.16.04.1 (Latest version in Ubuntu Canonical)
Code: Select all
[Mon Apr 16 05:59:45.932945 2018] [:error] [pid 25532] [client 75.97.234.87:53906] PHP Warning: imagettfbbox(): Could not find/open font in /var/www/weather/public_html/plugins/stickers/sticker800_170.php on line 289
[Mon Apr 16 05:59:45.932959 2018] [:error] [pid 25532] [client 75.97.234.87:53906] PHP Warning: imagettftext(): Could not find/open font in /var/www/weather/public_html/plugins/stickers/sticker800_170.php on line 292GD Support is enabled for FreeType (from phpinfo();)
- GD Support enabled
- GD headers Version 2.1.1
- GD library Version 2.1.1
- FreeType Support enabled
- FreeType Linkage with freetype
- FreeType Version 2.6.1
========
EDIT:
Ok, I just did the following:
Copied sticker800_170.php to stickerTest.php
Changed lines 289 & 292 to prefix the font name with the 'fonts/' directory so that it now looks like:
Code: Select all
function textCenter($img, $x, $y, $text, $size, $ttfsize, $color, $angle) {
$gsSupport = gd_info();
if ($gsSupport["FreeType Support"] == 0){
$x -= (imagefontwidth($size) * strlen($text)) / 2;
$y -= (imagefontheight($size)) / 2;
imagestring($img, $size, $x, $y - 3, $text, $color);
}
else {
$box = imagettfbbox ($ttfsize, $angle, 'fonts/Roboto-Bold.ttf', $text);
$x -= ($box[2] - $box[0]) / 2;
$y -= ($box[3] - $box[1]) / 2;
imagettftext ($img, $ttfsize, $angle, $x, $y, $color, 'fonts/Roboto-Bold.ttf', $text);Not sure why this was needed on this install, but it seems to be working for other people out of the box ...
Jachym - if you have any thoughts/ideas I'm all ears and if you need any other info just let me know.


