Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
deggertsen CreditAttribution: deggertsen commentedI'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...
Comment #2
quicksketchYou need to increase the memory limit on your PHP installation. Resizing images takes a lot of memory.
Comment #3
deggertsen CreditAttribution: deggertsen commentedYeah, 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.
Comment #5
Hanno CreditAttribution: Hanno commentedHad 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?
Comment #6
quicksketchSure, 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.
Comment #7
Hanno CreditAttribution: Hanno commentedcool