Answers for "php get image at specific size"

PHP
2

get image size php

$image_size = $_FILES["inputfilename"]["size"];
/*Not From Form*/
$img_size = getimagesize("imagepath"); // returns an array that is filled with info
print_r($img_size);
Posted by: Guest on June-14-2021
0

php check image size before upload

$image_size = $_FILES["inputname"]["size"];
if($image_size > 10000){
	echo "size too large";
}
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language