here is the website im talking about http://makeupbyarpi.com/portfolio.php
Eğer bazı görüntülerin farkedeceğiniz genişlik-bilge smushed edilir.
i kullanılan kod şudur:
$width="500";
$height="636";
$img_src = $_FILES['galleryimg']['tmp_name'];
$thumb = "../gallery/".rand(0,100000).".jpg";
//Create image stream
$image = imagecreatefromjpeg($img_src);
//Gather and store the width and height
list($image_width, $image_height) = getimagesize($img_src);
//Resample/resize the image
$tmp_img = imagecreatetruecolor($width, $height);
imagecopyresampled($tmp_img, $image, 0, 0, 0, 0, $width, $height, $image_width, $image_height);
//Attempt to save the new thumbnail
if(is_writeable(dirname($thumb))){
imagejpeg($tmp_img, $thumb, 100);
}
//Free memory
imagedestroy($tmp_img);
imagedestroy($image);
tarih olsun görüntüler bazen 3000px 2000px tarafından çok büyük ve ben php x 536 500 kırpma aşağı ve tabanlı görüntüler smushed olsun bazı manzara var. görüntü iyi çıkıyor, böylece i dikkatle kırpmak için kullanabileceğiniz bir formül var mı?
teşekkürler