//create the thumbnail $attachthumb = imagecreatetruecolor($img2w,$img2h); imagecopyresampled($attachthumb,$file1,0,0,0,0,$img2w,$img2h,$img1w,$img1h);
ob_start();
//all thumbnails are stored as png $thumbrendered = $vbattachthumb.$fnnoext."_thu.png"; imagepng($attachthumb,$thumbrendered);
ob_end_clean();
I create the thumbnails as PNG files, same thing worked for creating the avatar pics in another script; instead for thumbnails in the forum attachments I rendered them in jpeg; should i pass to jpeg instead?
Saimon69
--------------- Added [DATE]1295545471[/DATE] at [TIME]1295545471[/TIME] ---------------
BTW, i tried to generate thumbs as jpeg and same results; the problem is with the full online image; is generated too but does not appear in the post.