@lynne
good question, this is the part that takes care of the thumbnail rendering:
PHP Code:
//determine size for thumbnail
$img2w = ($img1w >100 ) ? 100 : $img1w;
$img2h = round($img2w/$ratio); //rounded width/ratio
//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.