Recently I have been having problems on a few different web sites with pages not loading when I have the resize filter enabled. It seems to happen on pages that have lots of images. When I talked to my server people they said that image size filter was running an enormous amount of processes causing the server a lot of stress. Is there any way to fix this problem? Is there any way to make it so that the image resize process is done on cron or something else? I can't pinpoint the exact problem but it's a pretty big deal when I add an image to a page now and the page simply will not load.

Thanks

Comments

deggertsen’s picture

I've been playing around with this a lot and noticed that a few of my images were using relative paths (see #921074: Ignore relative paths (that cause Image Resize Filter to fail)). When I would disable the option to link to the original image (lightbox enabled) it would load but the images that used the relative path would disappear. So I fixed the paths and now on this site everything seems to be working just fine.
However I had another site earlier today where my client uploaded an image (using IMCE and TinyMCE) and then went to save and the page wouldn't load anymore. We already are not using the link to the original image option so that doesn't seem to be the problem there. As soon as we removed the newly added image the page loaded fine again. I don't get it...

quicksketch’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

You need to increase the memory limit on your PHP installation. Resizing images takes a lot of memory.

deggertsen’s picture

Yeah, my shared server doesn't have a large enough memory limit. I figured out though that I can simply just go in and edit and save the page a few times and that seems to work just fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Hanno’s picture

Title: Page doesn't load when using Image Resize Filter » Page doesn't load when using Image Resize Filter due to memory limit
Component: Code » Documentation
Category: support » task
Status: Closed (fixed) » Active

Had the same problem with pictures larger than 2 Mb, 4000x3000. Increasing memory from 60Mb to 96 Mb worked for me. Costed a while to figure out why the editors got a blank screen.

Would be nice to add the memory_limit requirement in the installation instructions. @quicksketch is that possible?

quicksketch’s picture

Sure, I haven't needed to do any work on Image Resize Filter as it's remarkably stable right now, but I'll address this in the README.txt before the next release.

Hanno’s picture

cool