Jump to content

Problems with resizing images


uluru75

Recommended Posts

I use a common thumbnail class to resize  images.

However, i ofter get this error:

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9344 bytes) in classes/Resize.php on line 42.

 

The main problem is that the resize often works when the image is around 3MB, but fails with some images that have around 1MP. Why is that?

 

The memory_limit is set to 32M by hosting provider so that should be enough.

Using ini_set('memory_limit','64M'); didn't help anyway even though it looked like it had been increased.

 

How can i solve it or at least how can I detect such error messages?

What image information would be helpful? Such as resolutions, size etc.

 

I didnt find any information on the forum that would solve that.

So thanks for any suggestions.

Link to comment
https://forums.phpfreaks.com/topic/186816-problems-with-resizing-images/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.