Author Topic: php 4.3.0 und GD Biblothek  (Read 6211 times)

0 Members and 1 Guest are viewing this topic.

Offline Nitro

  • Pre-Newbie
  • Posts: 3
    • View Profile
php 4.3.0 und GD Biblothek
« on: February 04, 2003, 05:09:20 PM »
Also vor kurzem wurde auf dem Server wo euer geniales Script installiert ist, ein Update auf PHP 4.3.0 durchgeführt. Normalerweise ist es doch so, dass die GD Biblothek in PHP 4.3.0 integriert ist. Nur wenn ich es im Control Panel einstelle meldet er mir immer das er keine GD Biblothek gefunden hat. Woran liegts??? :?:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
php 4.3.0 und GD Biblothek
« Reply #1 on: February 05, 2003, 11:48:02 AM »
In "includes/image_utils.php" findest Du folgenden Abschnitt:
Code: [Select]
if (!extension_loaded("gd")) {
      $convert_options['convert_error'] = (defined("IN_CP")) ? "<b class=\"marktext\">".$lang['gd_error']."</b><br />\n".$lang['check_module_settings'] : 1;
    }

Entferne Diesen Teil und prüfe obs dann funktioniert.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Nitro

  • Pre-Newbie
  • Posts: 3
    • View Profile
es klappt
« Reply #2 on: February 05, 2003, 06:03:57 PM »
Jo genau das wars. Nun klappt alles perfekt.
Vielen Dank für die Hilfe, denn ich wär nie drauf gekommen. :D

Offline Nitro

  • Pre-Newbie
  • Posts: 3
    • View Profile
hehe zu früh gefreut
« Reply #3 on: February 10, 2003, 12:21:10 AM »
es funzt noch net alles perfekt. Und zwar wenn ich die Auto.Thumbnailer oder Auot-Image-Resizer Funktion anwenden will bekomme ich immer so eine Meldung:
Konvertiere Bild-Datei: screen1.jpg (560x420) ....  
Fatal error: Call to undefined function: imagecreate() in /www/home/utf.dreamworld.de/pub/htdocs/www-data/home/4images/includes/image_utils.php on line 66


und hier der Code:
Code: [Select]
function resize_image_gd($src, $dest, $quality, $width, $height, $image_info) {
  global $convert_options;

  $types = array(1 => "gif", 2 => "jpeg", 3 => "png");
  if (defined('CONVERT_IS_GD2') && CONVERT_IS_GD2 == 1) {
    $thumb = imagecreatetruecolor($width, $height);
  }
  else {
    $thumb = imagecreate($width, $height);
  }
  $image_create_handle = "imagecreatefrom".$types[$image_info[2]];
  if ($image = $image_create_handle($src)) {
    if (defined('CONVERT_IS_GD2') && CONVERT_IS_GD2 == 1) {
      imagecopyresampled($thumb, $image, 0, 0, 0, 0, $width, $height, ImageSX($image), ImageSY($image));
    }
    else {
      imagecopyresized($thumb, $image, 0, 0, 0, 0, $width, $height, ImageSX($image), ImageSY($image));
    }
    $image_handle = "image".$types[$image_info[2]];
    $image_handle($thumb, $dest, $quality);
    imagedestroy($image);
    imagedestroy($thumb);
  }
  return (file_exists($dest)) ? 1 : 0;
}

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
php 4.3.0 und GD Biblothek
« Reply #4 on: February 10, 2003, 10:31:37 PM »
Dann scheint GD doch nicht installiert zu sein.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search