Use an image style for images embedded in the webform submission results PDF by webform_entity_print

Created on 12 May 2025, 25 days ago

Problem/Motivation

A site where the Webform submodule webform_entity_print is in use is getting PHP Fatal error: Allowed memory size of 268435456 bytes exhausted. There is probably a lot going on to use up 268 MB of RAM but one thing that jumped out is that the images that were uploaded to the webform appear to be included at their full uploaded resolution, not re-sized to a normal 8" print resolution. This easily produces 36MB PDFs even when it does work.

Steps to reproduce

Proposed resolution

Add an optional setting to use an image style for embedded images.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.71.5 2024