Skip to content

Image processing through Imagick leave large temporary files when it fails #10230

Description

@dacolboy

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

I've notice that my temporary storage gets full from time to time. It happens when RC try to scale some images using Imagick and fails, showing the PHP Error.

After that, a file called "magick-xxxxxxxxxxxxxxxxxxx" is left in my temporary storage. Sometimes, there are several very large files like this and the filesystem gets full.

This only happens with specific images and it's not related to the their properties (size, type, ...) because I've tried with several images, with same type and size and I don't always get the error.

What browser(s) are you seeing the problem on?

Chrome

What version of PHP are you using?

8.4.21

What version of Roundcube are you using?

1.7.1

JavaScript errors

No response

PHP errors

roundcube[2009831]: PHP Error: Unable to scale image in /aplica/round/www/program/lib/Roundcube/rcube_image.php on line 189

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions