I would like manipulate/resize images in a similar way to Pinterest but I am not sure what is the best way to approach it. The goal is to allow a mix of both portrait and la
try with this
$needheight = 1000; $needwidth = 1000; $arrtest = getimagesize($upload_image_physical_path); $actualwidth = $arrtest[0]; $actualheight = $arrtest[1]; if($needwidth > $actualwidth || $needheight > $actualheight){ //uplaod code }
cheers