i am uploading image to s3 server and by php i am making a copy of that image on server , if i upload an image of 2.3 mb than the width of image is not coming but if i upload less size image like 26kb than it is showing the width of image so it is able to create the copy .
Burada php benim kodu:
$s3 = new S3(awsAccessKey, awsSecretKey);
$thumbId = uniqid();
$thumbId .= ".jpg";
$img = '';
if($imgType == "image/jpeg"){
$img = imagecreatefromjpeg($sourceUrl);
}else if($imgType == "image/png"){
$img = imagecreatefrompng($sourceUrl);
}else if($imgType == "image/gif"){
$img = imagecreatefromgif($sourceUrl);
}else{
$img = imagejpeg($sourceUrl);
}
echo $width = imagesx( $img );
echo $height = imagesy( $img );
görüntü boyutu ile sorunun ne olduğunu söyle lütfen ..
selamlar
rahul