While using captcha method I am getting complete black image in linux server where as it is completely working fine in my local XAMPP environment.
I have this code in my server for a route
$img = new Image();
$img->captcha("PermanentMarker-Regular.ttf", 100, 6, 'SESSION.captcha_code', '', '0X369', '0XEEE');
$img->render();
unset($img);
I have included that font in UI folder.
this is the GD part in the php info of my server :
- GD Support enabled
- GD headers Version 2.2.5
- GD library Version 2.2.5
- FreeType Support enabled
- FreeType Linkage with freetype
- FreeType Version 2.8.1
- GIF Read Support enabled
- GIF Create Support enabled
- JPEG Support enabled
- libJPEG Version 8
- PNG Support enabled
- libPNG Version 1.6.34
- WBMP Support enabled
- XPM Support enabled
- libXpm Version 30411
- XBM Support enabled
- WebP Support enabled
actual image looks like this
