Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resize images too large for GD Library on my server

I almost always have a PHP resize script (using GD) in websites for my clients. No matter how many times I tell them to resize their huge 7MP images from their digital camera before uploading them, they still never do it. The result is an "Out Of Memory" error from the server, and the image doesn't get resized, because the original image was too large resolution-wise.

Is there a better way to resize really large images? Is there a service that offers an API that I could tap into through my script to resize these large images?

like image 890
Mike McLin Avatar asked Aug 13 '09 15:08

Mike McLin


1 Answers

You can call Imagemagick to resize the picture from your php page, but there's a security matter then if you allow system calls

Any API will use a lot of Memory, you can change your php memory_limit aswell.

like image 180
Lliane Avatar answered Oct 19 '22 19:10

Lliane