ich suche einen mod, der mir bei Anhängen mit Bildern die automatisch auf 640x480 skalliert, denn das mit den Link mag ich nicht

danke
mfg
Einste1n
Code: Alles auswählen
Warning: imagecreatetruecolor(): requires GD 2.0 or later in /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php on line 205
Warning: imagecopyresampled(): requires GD 2.0 or later in /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php on line 206
Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php on line 215
Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php on line 225
Warning: Cannot add header information - headers already sent by (output started at /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php:205) in /home/www/web7/html/phpbb2.test/posting.php on line 595
Warning: Cannot add header information - headers already sent by (output started at /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php:205) in /home/www/web7/html/phpbb2.test/includes/page_header.php on line 480
Warning: Cannot add header information - headers already sent by (output started at /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php:205) in /home/www/web7/html/phpbb2.test/includes/page_header.php on line 482
Warning: Cannot add header information - headers already sent by (output started at /home/www/web7/html/phpbb2.test/attach_mod/includes/functions_thumbs.php:205) in /home/www/web7/html/phpbb2.test/includes/page_header.php on line 483
Code: Alles auswählen
header ('Pragma: no-cache');
Code: Alles auswählen
<img name="tstimg" width="450" height="1">
<script>
var oimg_width=new Array();
var oimg_height=new Array();
var imgMaxWidth=document.images['tstimg'].width;
var imgLength;
setTimeout("resize_image()",3000);
function resize_image() {
if (document.images('postimg') && imgMaxWidth>449) {
if (document.images('postimg').length) {
imgLength=document.images('postimg').length;
if (imgLength>0 && imgMaxWidth>0) {
for (var i=0; i<imgLength && i<10; i++) {
var imager = document.images('postimg')(i);
imager.id=i;
if (imager.width>imgMaxWidth) {
update_img(imager);
} else {
imager.onload=update_img;
}
}
}
} else {
var imager = document.images('postimg');
imager.id=0;
if (imager.width>imgMaxWidth) {
update_img(imager);
} else {
imager.onload=update_img;
}
}
}
}
function revert(evt) {
var elem = (evt) ? evt.target : ((window.event) ? window.event.srcElement : "")
var temp;
temp=elem.width;
elem.width=oimg_width[elem.id];
oimg_width[elem.id]=temp;
temp=elem.height;
elem.height=oimg_height[elem.id];
oimg_height[elem.id]=temp;
elem.onclick=revert;
}
function update_img(evt) {
var elem = (evt) ? (evt.target ? evt.target : evt) : ((window.event) ? window.event.srcElement :
"")
if (elem.width>imgMaxWidth) {
oimg_width[elem.id]=elem.width;
oimg_height[elem.id]=elem.height;
elem.style.cursor= document.all ? 'hand' : 'pointer';
elem.title="Für Originalgröße anklicken!";
elem.onclick=revert;
elem.width=imgMaxWidth;
elem.height=elem.height * imgMaxWidth/elem.width;
}
}
</script>
Code: Alles auswählen
<tr>
<td colspan="2" align="center"><br /><img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" /><br /><br /></td>
</tr>
Code: Alles auswählen
<tr>
<td colspan="2" align="center"><br /><img src="{postrow.attach.cat_images.IMG_SRC}" name='postimg' alt="Image" title="Image" border="0" /><br /><br /></td>
</tr>