[dokuwiki] Re: Imagemagick

  • From: "Stephan Herrmann" <vlq@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 26 Jul 2006 12:56:07 +0200

Okay, I found it out. There is something wrong with the serverconfig.

in fetch.php:

  if(($conf['gdlib']>1) && function_exists("imagecreatetruecolor")){
    $newimg = @imagecreatetruecolor ($to_w, $to_h);
  }
  if(!$newimg) $newimg = @imagecreate($to_w, $to_h);
  if(!$newimg){
    imagedestroy($image);
    return false;
  }
The function_exists("imagecreatetruecolor")-request seems to be false, so only 
imagecreate is used. I tried to change the second if-clause to 

if(!$newimg) $newimg = @imagecreatetruecolor($to_w, $to_h);

And now it works. Does anybody know about such a problem? But anyway, now it 
works. Thanks to all.
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: