Needs review
Project:
Imagick
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2025 at 16:22 UTC
Updated:
17 Nov 2025 at 14:35 UTC
Jump to comment: Most recent
In the event that the image toolkit is used on a large PDF file.
It spawns a ghostscript process in the background for every single page within the PDF, which ends up needlessly using up loads of server resources, and can sometimes lead to zombie processes being left behing when a PHP timeout occurs.
1. Set Imagick as the default toolkit.
2. Attempt to call something along the lines of this with lots of pages:
// e.g. https://research.nhm.org/pdfs/10840/10840.pdf
\Drupal::service('image.factory')->get('public://my-very-large.pdf');
For files with multiple pages, unless specified in the source file, only the first page should ideally be loaded by default.
Provide MR.
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
codebymikey commented