function convertimage($source, $dst, $width, $height, $quality) { // [0]=>width, [1]=>height $imagesize = getimagesize($source); $imageressource = imagecreatefromjpeg($source); $imagefinal = imagecreatetruecolor($width, $height); $final = imagecopyresampled($imagefinal, $imageressource, 0, 0, 0, 0, $width, $height, $imagesize[0], $imagesize[1]); imagejpeg($imagefinal, $dst, $quality); } convertimage($chemin, $chemin, '960', '960', 50); //////// function convertimage($source, $dst, $quality) { // [0]=>width, [1]=>height $imagesize = getimagesize($source); $nouvellelargeur= 900; $reduction = (($nouvellelargeur * 100) / $imagesize[0]); $nouvellehauteur =(($imagesize[1] * $reduction) / 100); $imageressource = imagecreatefromjpeg($source); $imagefinal = imagecreatetruecolor($nouvellelargeur, $nouvellehauteur); $final = imagecopyresampled($imagefinal, $imageressource, 0, 0, 0, 0, $nouvellelargeur, $nouvellehauteur, $imagesize[0], $imagesize[1]); imagejpeg($imagefinal, $dst, $quality); } convertimage($chemin, $chemin, 50); ///////// $image = imagecreatefromstring(file_get_contents($chemin)); $exif = exif_read_data($chemin); if(!empty($exif['Orientation'])) { switch($exif['Orientation']) { case 8: $image = imagerotate($image,90,0); break; case 3: $image = imagerotate($image,180,0); break; case 6: $image = imagerotate($image,-90,0); break; } } } /////////////// :
No header data found.
:
$reponse39 = $bdd2->query("SELECT COUNT(*) AS nb_likaime FROM likeaime WHERE idlikemembre = $idmembreportrait"); $total_like39 = $reponse39->fetch(); $nb_like39 = $total_like39['nb_likaime']; ?>
 
  j'aime
 
  j'aime