Okay....Sehe gerade, das du bereits alle schon umbenannt hast....Ähmm, auf die Schnelle sehe ich nun auch keine Varaibale "$filepath" mehr, ausser in der Zeile, welche man aber löschen soll....
Also hier ist mal mein histo.php.:
<?php
// Histogram creation
// Created by Anton Sparrius (Spaz) 6/9/05 anton_spaz@yahoo.com
// Free to use and change, provided you keep these lines :)
//
if (file_exists($hist_path.$hist_file)) {
$im=imagecreatefromPNG($hist_path . $hist_file);
imagePNG($im);
imagedestroy($im);
} else {
$im=imagecreatefromjpeg($hist_path.$hist_image);
for($i=0;$i<imagesx($im);$i+=2)
{
for($j=0;$j<imagesy($im);$j++)
{
$rrggbb=imagecolorsforindex ($im, imagecolorat($im,$i,$j));
$r[$rrggbb['red']]+=1;
$g[$rrggbb['green']]+=1;
$b[$rrggbb['blue']]+=1;
}
}
for ($i=0;$i<256;$i++)
{
$max[$i]=($r[$i]+$g[$i]+$b[$i])/3;
}
$max_value=max($max)/150;
$m[0]=max($r);
$m[1]=max($b);
$m[2]=max($g);
$max_rgb=max($m)/150;
$im_out = imageCreate (280, 164);
$background = imageColorAllocate($im_out,70,70,70);
$hist=ImageColorAllocate($im_out,0,0,0);
$white=ImageColorAllocate($im_out,143,143,134);
$red=ImageColorAllocate($im_out,255,0,0);
$green=ImageColorAllocate($im_out,0,255,0);
$blue=ImageColorAllocate($im_out,0,0,255);
$ry=107;
$gy=107;
$by=107;
for($i=0;$i<256;$i++)
{
imageLine($im_out, $i+14, 157, $i+14, 157-($max[$i]/$max_value),$white);
imageLine($im_out, $i+13, $ry, $i+14, 157-($r[$i]/$max_rgb), $red);
imageLine($im_out, $i+13, $gy, $i+14, 157-($g[$i]/$max_rgb), $green);
imageLine($im_out, $i+13, $by, $i+14, 157-($b[$i]/$max_rgb), $blue);
$ry=157-($r[$i]/$max_rgb);
$gy=157-($g[$i]/$max_rgb);
$by=157-($b[$i]/$max_rgb);
}
imageLine($im_out,13,158,270,158,$hist);
imageLine($im_out,13,6,270,6,$hist);
imageLine($im_out,13,6,13,158,$hist);
imageLine($im_out,270,6,270,158,$hist);
imagePNG($im_out,$hist_path . $hist_file);
imageDestroy($im);
imagedestroy($im_out);
$im=imagecreatefromPNG($hist_path . $hist_file);
imagePNG($im);
imagedestroy($im);
}
?>
Kopier dir einfach mal diesen Code.....Vielleicht ist doch irgendwo ein Kommafehler drin oder sowas....