Out-of-memory error when editing node with many large images on a field

Created on 8 November 2022, over 1 year ago
Updated 11 January 2024, 6 months ago

Problem/Motivation

I have a node of a 'Gallery' content type, with an image field that has about 100 images attached with each JPG weighing in around 16MB on disk. When I tried to edit this field, PHP ran out of memory, and I got a WSOD. I tracked it to this module calling PEL which tries to read each JPG into memory using file_get_contents.

I temporarily worked around my problem by simply commenting out the call to `new PelJpeg()` in file_mdm_exif and returning FALSE instead, but I'm curious as to what the recommended solution to this use case might be.

Thanks!

πŸ› Bug report
Status

Active

Version

2.5

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States noahadler

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024