Error: Call to undefined function xenMade\STWM\Util\imagettfbbox()
src/addons/xenMade/STWM/Util/Watermark.php:214
#0 src/addons/xenMade/STWM/Util/Watermark.php(121): xenMade\STWM\Util\Watermark->getTextSize('12', '0', 'styles/def...', 'Copyright 2018 ...')
#1 src/addons/xenMade/STWM/Util/Watermark.php(89): xenMade\STWM\Util\Watermark->generateWatermarkImage()
#2 src/addons/xenMade/STWM/XF/ControllerPlugin/Attachment.php(37): xenMade\STWM\Util\Watermark->__construct(Object(xenMade\STWM\XF\Entity\Attachment))
#3 src/XF/Pub/Controller/Attachment.php(43): xenMade\STWM\XF\ControllerPlugin\Attachment->displayAttachment(Object(xenMade\STWM\XF\Entity\Attachment))
#4 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Attachment->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Index', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Attachment), NULL)
#6 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}
<pre class='xdebug-var-dump' dir='ltr'>
<small>/app/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
'url' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php?attachments/dsc_114253-jpg.105/'</font> <i>(length=42)</i>
'referrer' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'http://www.earl.com/index.php?resources/thirty-fifth-test-resource.47/'</font> <i>(length=68)</i>
'_GET' <font color='#888a85'>=></font>
<b>array</b> <i>(size=1)</i>
'attachments/dsc_114253-jpg_105/' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'_POST' <font color='#888a85'>=></font>
<b>array</b> <i>(size=0)</i>
<i><font color='#888a85'>empty</font></i>
</pre>
[/ICODE]
On the server probably missing truetypeError: Call to undefined function xenMade\STWM\Util\imagettfbbox() src/addons/xenMade/STWM/Util/Watermark.php:214
yeah my bad, I already had GD but not the FreeType. got it fixed by installing FreeType library.On the server probably missing truetype
This function requires both the GD library and the FreeType library.
it doesn't matter! PHP should only have access to it...where should I suppose to put the watermark.png file?
no further error messages in the ACP?but I only get the text watermark, image watermark doesn't work.
After rebuilding the VPS, it started working, but image opacity isn't working. I tried both png and jpeg, still, it's showing the watermark without reducing the opacity. I tried adding less opacity png as the watermark file, but it reproduces full opacity watermarked attachment from my less opacity watermark png file.it doesn't matter! PHP should only have access to it...
i have it e.g. in the root of XF
no further error messages in the ACP?
Write to me on xenMade.com!
i do it!I have one suggestion.
Can you add a option for users (Add watermark or not to add) when thy uploading image to gallery
i have send u a fixAfter rebuilding the VPS, it started working, but image opacity isn't working. I tried both png and jpeg, still, it's showing the watermark without reducing the opacity. I tried adding less opacity png as the watermark file, but it reproduces full opacity watermarked attachment from my less opacity watermark png file.
Yes, that was fast. And your fix is working. Sorry for the delayed responsei have send u a fix
[add] Setting to specify a font.
[fixed] Image Watermark opacity for jpg
[*] Watermark-Code revision
This is only a problem if you use "Imagemagick"!@au lait
Just updated from 1.1.0 to 1.1.2. I disabled the addon , then updated as per instructions. Now getting the following error
ErrorException: [E_WARNING] imagecopy() expects parameter 2 to be resource, object given in src/addons/xenMade/STWM/Util/Watermark.php at line 137
- XF::handlePhpError()
- imagecopy() in src/addons/xenMade/STWM/Util/Watermark.php at line 137
- xenMade\STWM\Util\Watermark->generateWatermarkImage() in src/addons/xenMade/STWM/Util/Watermark.php at line 78
- xenMade\STWM\Util\Watermark->__construct() in src/addons/xenMade/STWM/XF/ControllerPlugin/Attachment.php at line 37
- xenMade\STWM\XF\ControllerPlugin\Attachment->displayAttachment() in src/XF/Pub/Controller/Attachment.php at line 43
- XF\Pub\Controller\Attachment->actionIndex() in src/XF/Mvc/Dispatcher.php at line 249
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1891
- XF\App->run() in src/XF.php at line 328
- XF::runApp() in index.php at line 13
[fixed] watermark text proportional to picture size
[fixed] Several improvements
[*] Many many design/phrasen improvements
[add] Image: Min. Size for Watermarking (px)
[add] Image: Watermark percentage
[fixed] Several improvements
[*] design/phrasen improvements
[fixed] Missing - Text: Min. Size for Watermarking (px)
[fixed] Minor errors
We use essential cookies to make this site work, and optional cookies to enhance your experience.