Hallo,
ich habe ein Problem mit dem Befehl "imagecreatefromjpeg".
Wenn ich jpg Dateien verwende, zeigt er mir nur kryptische Zeichen an anstatt ein Bild.
In der GD-Lib ist soweit alles aktiviert:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.2
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
Hier das Script:
Vielleicht stand jemand schon einmal vor dem selbigen Problem.
VG
anubia
ich habe ein Problem mit dem Befehl "imagecreatefromjpeg".
Wenn ich jpg Dateien verwende, zeigt er mir nur kryptische Zeichen an anstatt ein Bild.
In der GD-Lib ist soweit alles aktiviert:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.2
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
Hier das Script:
PHP:
$startbild_pfad="bilder/".$startbild.".jpg";
$startbild_size=getimagesize($startbild_pfad);
$startbild_breite=$startbild_size[0];
$startbild_hoehe=$startbild_size[1];
$startbild_tumb_breite=100;
$startbild_tumb_hoehe=intval($startbild_hoehe*$startbild_tumb_breite/$startbild_breite);
$startbild_orig=imagecreatefromjpeg($startbild_pfad);
$startbild_thumb=imagecreatetruecolor($startbild_tumb_breite,$startbild_tumb_hoehe);
imagecopyresized($startbild_thumb,$startbild_orig,0,0,0,0,$startbild_tumb_breite,$startbild_tumb_hoehe,$startbild_breite,$startbild_hoehe);
echo "<img src='".imagejpeg($startbild_thumb)."' style='margin:0px; padding:0px; overflow:hidden; width:100px;' lowsrc='bilder/root/wait.gif' alt='".$row[bezeichnung]."' border=0>";
Vielleicht stand jemand schon einmal vor dem selbigen Problem.
VG
anubia