[dokuwiki] Re: Bug in fetch.php (was Imagemagick)

Stephan Herrmann wrote:
Can it be, that this is a bug in fetch.php?

  if(($conf['gdlib']>1) && function_exists("imagecreatetruecolor")){

That means $conf['gdlib'] has to be greater than 1 to work. But according to 
http://wiki.splitbrain.org/wiki%3Aconfig#gdlib I set it to one. And so it 
didn't use @imagecreatetruecolor.

I now changed it to

if(($conf['gdlib']>0) && function_exists("imagecreatetruecolor")){

And it works. What do you think? Bug?

Regards,

Stephan
Do you use admin menu/configuration settings to alter your local settings?

2 is autodetect. 1 tells dokuwiki its using GDLib 1.x. imagecreatetruecolor doesn't exist in GDLib 1.x.

Did you mention your GD version beore?
Since you have that function, it sounds like you don't have a 1.x version, in which case you should have the value set to 2.


Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: