Handle Fatal Error in Image toolkit

Created on 2 April 2024, 8 months ago

Problem/Motivation

In my hosting environment there is a memory limit when the queue items get processed. On an image that is 20k x 14k I get a repeating error in the php log

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 81920 bytes) in /code/web/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php on line 197

Steps to reproduce

Set memory limit to something low.
Execute image resize queue runner

Proposed resolution

Some mechanism to make mark an image as non-processable and skip it

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

miiimooo Europe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024