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 .
here is my code of php :
$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 );
please tell me what is the problem with size of image..
regards
rahul