Black Lemming's den

Screenshots :


read()) { if ($file!="."&&$file!=".."&& (strpos($file,".jpg") || strpos($file,".JPG") || strpos($file,".jpeg"))) { $taille = round(filesize("pics/$file") / 1000); if(!file_exists("pics/tn/$file")){ $img=null; $img = imagecreatefromjpeg("pics/$file"); if ($img){ $width = imagesx($img); $height = imagesy($img); $scale = min(150/$width, 150/$height); $new_width = floor($scale*$width); $new_height = floor($scale*$height); // Version 2 de GD $tmp_img = imagecreatetruecolor($new_width, $new_height); imagecopyresized($tmp_img, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height); imagedestroy($img); $img = $tmp_img; imagejpeg($img,"pics/tn/$file"); } } echo ""; if (++$k==3) { echo ""; $k=0; } } } ?>

$taille Ko