• Resolved alduinwf

    (@alduinwf)


    Hello,

    I installed Imagify recently (well and paid for the service over a year without looking at it at all, minor details :–) ), and now I have an error.

    The message is this:

    cache resources exhausted '[path]/wp-content/uploads/2022/12/huge-file.jpg' @ error/cache.c/OpenPixelCache/3943

    Well it had 8157x5395px@300dpi, I get it, it’s huge. But. I told Imagify to resize images to max. 2560px width.

    I wanted to suggest that this resize job is maybe done locally using the server’s GD (or whatever WP uses when it creates the thumbs) before sending it to Imagify – this would prevent a lot of errors, I suppose. Because I have some more sites with a very similar problem when images are too big. (well most of them are older and popped up as errors when doing bulk optimization, but in the current case, the error was, apparently, thrown at the editor who uploaded the file.

    Advantage would be, if the own server runs into resource issues because image is too big, the admin (“me”) could fix that, without creating a ticket on your service :–)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @alduinwf

    Thank you for your feedback and I am sorry to hear about the issue!

    Issues with image resizing might be caused through Imagick the package responsible for image resizing. In that case, I can suggest you use this helper plugin that will make your server use a different package called GD instead. Just install and activate it and see if the issue is getting solved.

    It could also be an issue with a lack of available memory dedicated to your WordPress site from your server. You could also try adding the following to your wp-config.php file:

    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    Another thing to try if the above won’t help is to try to optimize the image directly on https://app.imagify.io first and then upload it to your website.

    Feel free to let me know how it goes.

    Best Regards,
    Ioanna

    Thread Starter alduinwf

    (@alduinwf)

    Hi,

    oh, so that is indeed an error on my end? That is kind of embarrassing. Will try to fiddle with Imagick’s nuts and bolts then. I thought that was returned from the API. Because, you know, WordPress was able to create different image sizes. ??

    Sorry then. I’ll report back what I found. (But for now, I have to regenerate some thumbnails, for which I disabled Imagify because it took foreeeever otherwise.)

    Thread Starter alduinwf

    (@alduinwf)

    Hi,

    Update: I’ve put the limits in Imagick’s policy.xml to ridiculously high levels and now it does not die any more with said error message :–)

    Thanks for the input!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cache resources exhausted @ error/cache.c/OpenPixelCache/3943’ is closed to new replies.