Incearca functia "imagecopyresampled" in loc de "imagecopyresized". Vei obtine imagini clare chiar si cu mai putin de 100 la imagejpeg.