My problem is when i upload image 3000x3000 (i resize it to 1100x600) it works but when i try to upload 4500x4500 (i resize it to 1100x600) nothing happens, no response,only response is 500 and that is it, image is not uploaded, limit an upload size is set to 512MB in php ini
Resizing images is a very memory consuming task. You can't assume that a 1MB image takes 1MB of memory. Resizing a 3000 x 2000 pixel image to 300 x 200 may take up to 32MB memory for example. Even if the image is under 1MB filesize.