Wenn du das so sagst muss ich wohl eher sagen ich habe sogut
wie gar keine php kentnisse, könntest mir vielleicht ein
script beispiel geben oder so was?
dachte ich mir irgendwie *sfg*
ich hab mal gegoogelt - hier ein Script zum erstellen eines Thumbnails…
Damit solltest Du denke ich weiterkommen…
es ist zwar nicht besonders leicht verstehbarer code aber die Funktionsweise kannst Du ja theoretisch einfach übernehmen…
Quelle:
http://be2.php.net/imagejpeg
THUMBNAIL GENERATOR
Hope someone will find this usefull... save it to thumb.php and use it for on-the-fly thumbnails generating
e.g.
<?php // by [email protected]<br /> //
// proportional on-the-fly thumb generator from JPG images
//
// usage example:
// 
//
// parameters: src = source image
// wmax = max width
// hmax = max height
// quality = JPG quality of generated thumb - optional.
// if not specified, quality=90
// bgcol = if specified, allways generates exact wmax x hmax sized thumb,
// with bacground color bgcol and centered source image
//
// note: if source image is smaller than desired thumbnail, it will not be resized!
header("Content-type: image/jpeg");
$source = imagecreatefromjpeg($src);
$orig\_w=imagesx($source);
$orig\_h=imagesy($source);
if ($orig\_w\>$wmax || $orig\_h\>$hmax)
{
$thumb\_w=$wmax;
$thumb\_h=$hmax;
if ($thumb\_w/$orig\_w\*$orig\_h\>$thumb\_h)
$thumb\_w=round($thumb\_h\*$orig\_w/$orig\_h);
else
$thumb\_h=round($thumb\_w\*$orig\_h/$orig\_w);
} else
{
$thumb\_w=$orig\_w;
$thumb\_h=$orig\_h;
}
if (!@$bgcol)
{
$thumb=imagecreatetruecolor($thumb\_w,$thumb\_h);
imagecopyresampled($thumb,$source,
0,0,0,0,$thumb\_w,$thumb\_h,$orig\_w,$orig\_h);
}
else
{
$thumb=imagecreatetruecolor($wmax,$hmax);
imagefilledrectangle($thumb,0,0,$wmax-1,$hmax-1,intval($bgcol,16));
imagecopyresampled($thumb,$source,
round(($wmax-$thumb\_w)/2),round(($hmax-$thumb\_h)/2),
0,0,$thumb\_w,$thumb\_h,$orig\_w,$orig\_h);
}
if (!@$quality) $quality=90;
imagejpeg($thumb,"",$quality);
imagedestroy($thumb);
?\>
anschliessend musst Du halt noch das leichtere basteln - das Script, das Dir Deine IP’s abgleicht…
aber das denke ich kriegst Du auch allein hin - und wenn ned…
Dann musste schon noch mehr Infos rausrücken…
Aber nachdem ich Urlaub hab werde ich da wohl nix mehr posten…
Info bzgl Datenbank oder textfile o.ä.