[eluser]Mirage[/eluser]
you are wrong. constants are GLOBAL in PHP. BASEPATH is defined in index.php.
What you need to do is to configure the secureimage paths you mentioned to be prefixed with BASEPATH as illustrated by xwero. There's still a potential that your path is mangled or perhaps not readable/writeable by secureimage because of permission issues.
Not sure what you mean when you say you can't debug it from inside ci. First of all CI does have it's own logging mechanism. If you don't use that it's always useful to check the apache error_log. Finally there's nothing wrong with the good old 'echo'. Add a line after your var definition in the library:
Code:
var $gd_font_file = 'fonts/bubblebath.gdf'; var $ttf_file = "fonts/elephant.ttf";
var_dump($gd_font_file, $ttf_file);
to make sure your paths are correct. There may be further down the call stack.
Cheers!