I am having trouble resizing images. It works with normal smaller images. I am resizing them to 400 x 600. If someone uploads a 1000 x 1000 photo it works. But some people are uploading images 2300 x 3000 and it doesn't work.
I've used this but it doesnt seem to work.